Hi all,
I'm new to WildEdit and need a bit of help.
I need an expression that will remove all the blank lines in a file and also for each blank line remove the next two lines which may or may not contain text.
Thanks,
Paul.
WildEdit Newbie Find expression
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Help Again!
The first expression has worked a treat, but I also need to remove the first line from each file is this possible?
Thanks,
Paul.
Thanks,
Paul.
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
Hmm.
\A or \` should match the beginning of the document. These are not in the WildEdit documentation, but you'll find them in the documentation for the regex library it uses at http://www.boost.org/libs/regex/doc/syntax.html.
However, they seem to match the beginning of any line. I think this is a bug (but I don't know what in).
If they behaved as expected, then \A.*\r\n (with option '.' does not match a newline character ticked) should match only the first line. As it is, it matches any line.
Helios...?
\A or \` should match the beginning of the document. These are not in the WildEdit documentation, but you'll find them in the documentation for the regex library it uses at http://www.boost.org/libs/regex/doc/syntax.html.
However, they seem to match the beginning of any line. I think this is a bug (but I don't know what in).
If they behaved as expected, then \A.*\r\n (with option '.' does not match a newline character ticked) should match only the first line. As it is, it matches any line.
Helios...?