Find record(s) with a different length than

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
NineIron
Posts: 3
Joined: Thu Jun 10, 2010 3:14 pm
Location: Brockton, MA

Find record(s) with a different length than

Post by NineIron »

Most of the records in my file have a length of 251. How can I identify the few with a smaller record length?
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: ^.{0,250}$

[X] Regular expression
This assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
NineIron
Posts: 3
Joined: Thu Jun 10, 2010 3:14 pm
Location: Brockton, MA

Post by NineIron »

I get a message "Cannot find regular expression: '^.{0,250}$'
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Either there are no lines shorter than 251 characters or you're not using Posix regular expression syntax.
NineIron
Posts: 3
Joined: Thu Jun 10, 2010 3:14 pm
Location: Brockton, MA

Post by NineIron »

What will TextPad do to "find" the rows? Will they be highlighted?
I did have to switch to Posix expression.
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

If you select Find Next it will highlight the next string that matches the search expression. If you select Mark All it will bookmark all lines that match the search expression.
Post Reply