Marianne
Marianne

Reputation: 889

What does this regex mean?

I have the following expression for regex. Can someone tell me what it does? I can't find any reference to [?:]

Thanks

"abcd (?<result>.*?)[?:]"

Upvotes: 1

Views: 191

Answers (1)

icktoofay
icktoofay

Reputation: 129001

It matches any characters besides ? or : until (and including) a ? or : and places the text before the ? or : into a group named result.

Upvotes: 3

Related Questions