Page 1 of 1

Searching for text of a specific length

Posted: Tue Dec 07, 2004 7:41 pm
by Pinggolf
I would likt to perform a search for text within a file for a text string of a particular length. Could someone help??

Example:

I would like to find text strings greater than 120 characters only between "<a>" and "</a>".

Is this possible?

Thanks

Posted: Tue Dec 07, 2004 8:07 pm
by ben_josephs
Use POSIX regular expression syntax:
Configuration | Preferences | Editor

[X] Use POSIX regular expression syntax
Using Search | Find... :
Find what: <a>.{121,}</a>
(Doesn't work properly if there's more than one anchor element on a line.)

Posted: Tue Dec 07, 2004 8:28 pm
by Pinggolf
Thanks!

Length match

Posted: Mon Dec 27, 2004 5:49 pm
by charles
By the way, "<a>.{X,Y}</a>" where X and Y respectively represent minimal and maximal string length ...