Page 1 of 1
Find record(s) with a different length than
Posted: Thu Jun 10, 2010 3:17 pm
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?
Posted: Thu Jun 10, 2010 9:41 pm
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
Posted: Fri Jun 11, 2010 5:48 pm
by NineIron
I get a message "Cannot find regular expression: '^.{0,250}$'
Posted: Fri Jun 11, 2010 7:06 pm
by ben_josephs
Either there are no lines shorter than 251 characters or you're not using Posix regular expression syntax.
Posted: Fri Jun 11, 2010 7:47 pm
by NineIron
What will TextPad do to "find" the rows? Will they be highlighted?
I did have to switch to Posix expression.
Posted: Sat Jun 12, 2010 1:21 pm
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.