Insert at beggining of line

General questions about using TextPad

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

Post Reply
FrassHead
Posts: 3
Joined: Wed Apr 05, 2006 11:10 pm

Insert at beggining of line

Post by FrassHead »

Hi All,

I found this link http://www.textpad.info/forum/viewtopic.php?t=4534 and the comment macros are almost what I need. However, I need to insert a /* at the begginging of each selected row to comment them out.

I can't for the life of me figure out how to do a search/insert or search/replace for the "beggining" of the line.

What regexp does one use to place the cursor at the beggining of the line to insert characters (for all selected lines only).

I am open to suggestions also, as many of you probably know an easier/better method.

Thanks for any help,

FH
User avatar
Bob Hansen
Posts: 1516
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

From the EXAMPLES area of the TextPad Help section on Regular Expressions:
^ A circumflex as the first character of an RE anchors the expression to the beginning of the line.
Hope this was helpful.............good luck,
Bob
FrassHead
Posts: 3
Joined: Wed Apr 05, 2006 11:10 pm

Post by FrassHead »

Thanks Bob,

I thought I had tried that already with no luck. I must have had something else in my regexp wrong, as it works perfectly now.

Thanks agian,

FH
Post Reply