Skip to content
Advertisement

Tag: regex-negation

regex skip match if its follows by whitespace and a keyword

Currently trying to match comments with regexes but only if no function follows. Currently I use a regex which also matches the keyword function. And then check in the source code (php) if this group is set or not. https://regex101.com/r/l0j1ip/1 Now the question is whether it is possible to realize with pure regex. I have tried it with a simple

Advertisement