Searching for text of a specific length

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Pinggolf
Posts: 4
Joined: Tue Dec 07, 2004 7:36 pm

Searching for text of a specific length

Post 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
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post 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.)
Pinggolf
Posts: 4
Joined: Tue Dec 07, 2004 7:36 pm

Post by Pinggolf »

Thanks!
charles
Posts: 20
Joined: Mon Dec 27, 2004 5:11 pm
Contact:

Length match

Post by charles »

By the way, "<a>.{X,Y}</a>" where X and Y respectively represent minimal and maximal string length ...
Post Reply