I'd like to delete all lines starting with # within selected text.
Code: Select all
# Delete me
Keep me
#Delete me
Keep me
Would end up with
Keep me
Keep me
Replaced with "" but there's something wrong with the regular expression.
Thanks,
Bjorn
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Code: Select all
# Delete me
Keep me
#Delete me
Keep me
Would end up with
Keep me
Keep me
Code: Select all
^# .*$
Code: Select all
Line1
Line 2
Line3
Should be
Line1
Line2
Line3
This should beacessn wrote:Code: Select all
^# .*$
Code: Select all
^#.*$
Code: Select all
#Delete me