Home >Backend Development >PHP Tutorial >php中Warning: preg_match_all(): Compilation failed: lookbehind assertion
Today when I was testing the code related to looking around in regular expressions, I found an error The error message is as follows: Warning: preg_match_all(): Compilation failed: lookbehind assertion is not fixed length at offset The code is as follows:
Change the above code to:
Actually, you don’t need to look around to match, you can directly use grouping to capture the content. You just need to filter the returned results
|