3 ms·
Interesting. I have used look behind before without knowing their specifics. AI generated a regex and unit tests passed so I carried on with life. Searching fo
by hu3 1y ago
Interesting. I have used look behind before without knowing their specifics. AI generated a regex and unit tests passed so I carried on with life.
Searching for a simple explanation of how it works, I found this which also explains negative look behind and look ahead. TIL:
https://www.phptutorial.net/php-tutorial/regex-lookbehind/ https://www.phptutorial.net/php-tutorial/regex-lookbehind/