You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I write a regular expression with a (positive or negative) lookahead (or lookbehind) assertion I get an error saying it's incorrect Perl syntax.
For example to look for the text "function" that's not followed by an underscore, I might use this: function(?!_)
However that returns the error: ERROR:error parsing regexp: invalid or unsupported Perl syntax: (?!
However they do work in Perl!
Any ideas?
PS: In this toy example I could use a negated character class function[^_] for searching, but I'm interested in the general case rather than a solution to a specific pattern.
The text was updated successfully, but these errors were encountered:
If I write a regular expression with a (positive or negative) lookahead (or lookbehind) assertion I get an error saying it's incorrect Perl syntax.
For example to look for the text "function" that's not followed by an underscore, I might use this:
function(?!_)
However that returns the error:
ERROR:error parsing regexp: invalid or unsupported Perl syntax: (?!
However they do work in Perl!
Any ideas?
PS: In this toy example I could use a negated character class
function[^_]
for searching, but I'm interested in the general case rather than a solution to a specific pattern.The text was updated successfully, but these errors were encountered: