Is there a way to search a record by column numbers?

General questions about using TextPad

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

Post Reply
karipay
Posts: 12
Joined: Thu Feb 05, 2009 10:26 pm

Is there a way to search a record by column numbers?

Post by karipay »

Hi.

Just want to know if this is possible in textpad. Searching by column number?


FILE
A2334
B1245
C2134

Search file for column 5 = "4"
A2334
C2134

TIA!
ben_josephs
Posts: 2464
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

^....4
or
^.{4}4

The second of these assumes you are using Posix regular expression syntax:
Configure | Preferences | Editor

[X] Use POSIX regular expression syntax
karipay
Posts: 12
Joined: Thu Feb 05, 2009 10:26 pm

Post by karipay »

This worked! Thanks a lot!

[quote="ben_josephs"][b][color=blue]^....4[/color][/b]
or
[b][color=blue]^.{4}4[/color][/b]

The second of these assumes you are using Posix regular expression syntax:
[quote][u]C[/u]onfigure | [u]P[/u]references | Editor

[[b][color=blue]X[/color][/b]] Use [u]P[/u]OSIX regular expression syntax[/quote][/quote]
Post Reply