I have the following operation which splits a string whenever it encounters an alphabet: I want to extend it in such a way that it splits the string whenever the variable encountered is NOT a number, bracket, plus sign, hyphen, newline or tab. I have written a regex which can match the above: But I need to negate it, to
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