insert text at beginning of a line

General questions about using TextPad

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

Post Reply
bensonuser
Posts: 10
Joined: Wed Mar 12, 2008 2:33 pm

insert text at beginning of a line

Post 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.
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

replace with

Code: Select all

#&
& in the replacement box (with regex search enabled) stands for complete match.
bensonuser
Posts: 10
Joined: Wed Mar 12, 2008 2:33 pm

Post by bensonuser »

Thanks

that's does the trick :D
Post Reply