^ 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
Regex $ problem
-
David
- Developer
- Posts: 430
- Joined: Tue Mar 17, 2009 1:42 am
Re: Regex $ problem
"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:
((Match one or more spaces OR the start of the line) before dows).
$ matches the end of the line.
^ matches the start of the line.
To match the start of a word, try:
Code: Select all
([ ]+|^)dows-
yam001
- Posts: 8
- Joined: Sat Oct 03, 2009 7:48 pm
Re: Regex $ problem
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.
So to find files/dirs ending with "dows" use dows$.
I think these regex examples should be included in the help file.