I am a new member and trying to use text pad as my editor.
I want to delete all lines which has // .
I tried some thing like
Find.*//.*
Replace "blank space"
but no luck .
Could you help in getting this?
Thanks in advance.
Deleting a line having // at beginging
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
If you only want to clear lines beginning with // use the following.
with regular expression enabled. The '^' symbol matches the start of a line.
Your original search string answers the question on how to "delete all lines which has //". The one above is for "Deleting a line having // at beginning".
Hope this helps.
Code: Select all
^//.*
Your original search string answers the question on how to "delete all lines which has //". The one above is for "Deleting a line having // at beginning".
Hope this helps.
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
Searching for and replacing by nothing does not delete the lines - for that it must be
Otherwise the line end will survive ...
Code: Select all
^//.*
Code: Select all
^//.*\n