Regular Expression - Question Mark (?)



The question mark (?) in a regular expression has several meanings and may define:

And to determine what is its meaning, it just depends on the context where it's used.

Discover More
Regexp - Look-around group (Assertion) - ( Lookahead | Lookbehind )

Look-around are non-capturing group that implements an assertion. question mark Assertion (?=X) X, positive lookahead (via zero-width) (?!X) X, negative lookahead (via zero-width) (?<=X) X,...
Regular Expression - Meta-(symbols|characters) - Operator

There are two different sets of meta-characters: those that are recognized anywhere in the pattern except within square brackets, and those that are recognized in square brackets. Operator...

Share this page:
Follow us:
Task Runner