Deleting all lines except lines containing "this charac

General questions about using WildEdit

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

Post Reply
afikolami
Posts: 3
Joined: Wed Mar 02, 2011 2:22 am

Deleting all lines except lines containing "this charac

Post by afikolami »

Well, basically what the topic says. For example:

>1
ababababab
>2
bcbcbcbcbcb
>3
dedededede

I want to delete all lines that do not have the ">" character. So the output would look like this:

>1
>2
>3

Can anybody lend me a hand?
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Search for: ^[^>]*\n

[X] Regular expression
[ ] "." matches end of line characters [i.e., not selected]

Replace with: [nothing]
Post Reply