Regular expression change

Found a bug in "Everything"? report it here
Post Reply
Posts: 6
Joined: Tue Apr 20, 2010 8:03 am

Regular expression change

Post by hutchinsfairy » Wed Jun 21, 2017 7:09 am

Just a heads up that the way Everything regex treats special characters within a character class has changed since I updated to v1.4.1.877.

Previously special characters inside a character class [] did not need escaping whereas now they do.

[^\] now needs to be [^\\] if you want to match a character other than a backslash for example.

It seems like this might represent a divergence from the POSIX interpretation.

Site Admin
Posts: 4820
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regular expression change

Post by void » Wed Jun 21, 2017 7:19 am

Everything 1.4 uses Perl Compatible Regular Expressions (PCRE)

Previous versions used POSIX regex.

PCRE has consistant escaping rules:
Any non-special escapes are treated as literal.

Post Reply