Page 1 of 1

Insert at beggining of line

Posted: Wed Apr 05, 2006 11:37 pm
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

Posted: Thu Apr 06, 2006 12:08 am
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.

Posted: Thu Apr 06, 2006 2:49 pm
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