Regex help please (to find all items which begin with "plus" sign)

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
burgundy
Posts: 288
Joined: Fri Oct 16, 2009 9:50 am

Regex help please (to find all items which begin with "plus" sign)

Post by burgundy »

How do I write a regex to find all items which begin with this "plus" character:
+
I am able to write a regex for all items which begin with this "equals" character:
=
The regex is:
^=
However using this same syntax and substituting the + character does NOT work. This is what fails:
^+
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: Regex help please (to find all items which begin with "plus" sign)

Post by void »

+ is a special regex character.
+ == match the previous element one or more times.

Please escape special regex characters with \

Please try the following regex:

^\+




Special Regex characters are shown under Help -> Regular Expression Syntax.
Post Reply