Page 1 of 1

replacing text

Posted: Tue Oct 14, 2003 7:17 pm
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

Posted: Tue Oct 14, 2003 7:24 pm
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...)