Regex $ problem

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
yam001
Posts: 8
Joined: Sat Oct 03, 2009 7:48 pm

Regex $ problem

Post by yam001 »

^ works fine but $ doesn't give any result.

According to the defn. $ Matches the ending position of the string or the position just before a string-ending newline. In line-based tools, it matches the ending position of any line.

So $dows should give windows as result but it doesn't
David
Developer
Posts: 430
Joined: Tue Mar 17, 2009 1:42 am

Re: Regex $ problem

Post by David »

"Everything" is a line based tool.
$ matches the end of the line.
^ matches the start of the line.

To match the start of a word, try:

Code: Select all

([ ]+|^)dows
((Match one or more spaces OR the start of the line) before dows).
yam001
Posts: 8
Joined: Sat Oct 03, 2009 7:48 pm

Re: Regex $ problem

Post by yam001 »

Well after reading more i found that i have to put $ at the end of search string.

So to find files/dirs ending with "dows" use dows$.

I think these regex examples should be included in the help file.
Post Reply