Regular expression change

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

Regular expression change

Post by hutchinsfairy »

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.

http://www.regular-expressions.info/posixbrackets.html
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regular expression change

Post by void »

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