Find a ( at begining of line

General questions about using TextPad

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

Post Reply
jpg
Posts: 14
Joined: Fri Mar 28, 2008 10:21 pm

Find a ( at begining of line

Post by jpg »

I want to delete all lines that begins with (B.O.

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

Post by Bob Hansen »

Edit/Find/Mark alll the lines,
Find: ^\(B.O.

Edit/Delete/Bookmarked lines.

Use the following settings:
-----------------------------------------
[X] Regular expression
Replace All
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Hope this was helpful.............good luck,
Bob
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Bob Hansen wrote:Edit/Find/Mark alll the lines,
Find: ^\(B.O.
Dangerous - This also finds lines starting with (BLOB.
^\(B\.O\.
is better.

And I would use
^\(B\.O\..*\n
and replace with nothing (instead of Mark all, Delete bookmarked Lines)
Post Reply