What does the regular expression, /(?!^)/g
mean?
I can see that from here x(?!y)
: Matches x
only if x
is not followed by y
.
That explains, if ?!
is used before any set of characters, it checks for the not followed by condition.
But we have, ?!^
. So, if we try to say it in words, it would probably mean not followed by negate. That really does not make me guess a probable statement for it. I mean negate of what?
I'm still guessing and could not reach a fruitful conclusion.
Help is much appreciated.
Thanks!