4 ms·
Look(ahead|behind)s do not consume any of the string which is probably where they confuse people. I see non-look regexes as stepping over each of the character
by justsomeuser 5y ago
Look(ahead|behind)s do not consume any of the string which is probably where they confuse people.
I see non-look regexes as stepping over each of the characters where you can never go back in time - once a char is stepped over it is gone.
“Looks” allow you to step over characters to true|false match them, then step back in the string as if the look did not exist.