Page 1 of 1

insert text at beginning of a line

Posted: Wed Mar 12, 2008 2:48 pm
by bensonuser
i am trying to insert a "#" in front of any line that has "299" in the 63rd space of the row

i can find the lines using ^.{63}299
i can't grasp how to then tell textpad to insert a # at the beginning of the line without deleting any of the existing information.
i have looked through the forums but have had no luck.

Posted: Wed Mar 12, 2008 8:01 pm
by MudGuard
replace with

Code: Select all

#&
& in the replacement box (with regex search enabled) stands for complete match.

Posted: Wed Mar 12, 2008 8:12 pm
by bensonuser
Thanks

that's does the trick :D