Why does the ‘oogle’ part match in (?!google).*
expression : (?!google).*
text: google
result: match ‘oogle’
Negative lookahead is not understood.
I thought I understood the 4 lookarround but not in the case above.
Need a detailed explanation that even beginners understand. Thank you.
We received a penalty for these questions (-1)
I was gifted a full tutorial of the regular expression as an answer to the penalty. Thank you, but the tutorial couldn’t fix this.
seyo g is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.