I'm using the boost library for regular expression.
What is the use of "!" mark in the Perl regular expression?
What does it denote?
I'm using the boost library for regular expression.
What is the use of "!" mark in the Perl regular expression?
What does it denote?
By itself it means nothing special, it just matches !
. It can be combined with other symbols to mean other things:
(?!...)
is a negative lookahead - it matches if the following characters do not match the "..." portion(?<!...)
is a negative lookbehind - it matches if the preceding characters do not match the "..." portion