Hi Guys,
Need some help from WildEdit pros:-)
I need to find all files containing:
<integer name="MaxChars">5</integer>
the trick is I need to find files where the max char is 5 or greater. Does anyone know what I should put in instead of 5 so all files with <5 are not found?
Thanks,
Sebastian
find files
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
first I was getting over 500 replacements in 3 test files where there should be not more than 15.
then I used
<integer name="MaxChars">([5-9]|[0-9]{2,})</integer>
and I got correct count.
Can you please tell me what should I change if next I want to find files with MaxChar =>85
I don't undertand what these numbers represent:
([5-9]|[0-9]{2,})
Thanks!!
then I used
<integer name="MaxChars">([5-9]|[0-9]{2,})</integer>
and I got correct count.
Can you please tell me what should I change if next I want to find files with MaxChar =>85
I don't undertand what these numbers represent:
([5-9]|[0-9]{2,})
Thanks!!
- s_reynisson
- Posts: 939
- Joined: Tue May 06, 2003 1:59 pm
Using Ben's solution - ([5-9]|[0-9]{2,}) - you have
() - group the options together
[5-9] - a single character that can be 5, 6, 7, 8 or 9
| - or
[0-9]{2,} - any two or more digits
To grab 85 and up you can use
(8[5-9]|9[0-9]|[0-9]{3,})
() - group the options together
8
[5-9] - followed by a single digit in the 5-9 range
| - or
9
[0-9] - followed by a single digit in the 0-9 range
| - or
[0-9]{3,} - any three or more digits
() - group the options together
[5-9] - a single character that can be 5, 6, 7, 8 or 9
| - or
[0-9]{2,} - any two or more digits
To grab 85 and up you can use
(8[5-9]|9[0-9]|[0-9]{3,})
() - group the options together
8
[5-9] - followed by a single digit in the 5-9 range
| - or
9
[0-9] - followed by a single digit in the 0-9 range
| - or
[0-9]{3,} - any three or more digits
Then I open up and see
the person fumbling here is me
a different way to be
the person fumbling here is me
a different way to be