replacing text

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
danwo58
Posts: 1
Joined: Tue Oct 14, 2003 7:14 pm

replacing text

Post by danwo58 »

i would like to know if there is a way to search for text at a particular column location.
Please help.
Ythank You,
Dan Wojtasiewicz
danwo@bluefrog.biz
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Yes, use regex, search for

^.{17}yourText

^ searches for start of line

. for any character

{17} for 17 occurrences of previous part, therefore

^.{17} searches for any 17 characters at the beginning of a line

and finally

^.{17}yourText

searches for any 17 characters at the beginning of a line followed by "yourText" or - with other words -
for "yourText" starting in column 18.

(replace number to fit the column you need...)
Post Reply