-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, October 19, 2005 06:55, Robert D. wrote: > I have been trying to include a line in Januk_Driver and Extract QT's > to remove everything after a troublesome line at the bottom of emails from > another list I am on. > > I tried playing with "The Regex Coach" I had D/L'd a few years ago but > it crashes. > > Here's the line I tried first: > ((\s*)?\n?Conserve Archive?.*?\n?\s*)?%- > but it leaves the first occurance of ~*~*~*~*~*~*~*~* > > Here are the first three lines of the tag they add: > <begin quote> > ~*~*~*~*~*~*~*~* Conserve Archive space, Don't OVERQUOTE *~*~*~*~*~*~*~*~ If you look at your regex, if I understand it correctly, will match: - space followed by any character, repeated 0 or once - 0 or 1 new line characters - Literal string "Conserv Archive..." etc - 0 or 1 new line characters - a space character - any other characters If I remember correctly, the ? means 0 or 1 (it's been a while). So the problem with that is, your first ~*~*~* appears after the space character, and not before it. This mean it starts the match after your ~* string at the space. You could modify it to something like: (\n?(~\*)+\s+Conserv.*(\*~)+\n?) Or, you could simply swap the \s* to *\s in your first () in your regex to see if that works. I've not tested that regex in TB, but a quick run in a perl script shows it works. - -- Jonathan Angliss <[EMAIL PROTECTED]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iEYEARECAAYFAkNWTQgACgkQK4PoFPj9H3MvLACfWR37wU4BsfQAaf2sXvyavPRI BO4AoPr+hy2MkNQ3Vuevp8xVKFQwGEbO =2Oc+ -----END PGP SIGNATURE----- ________________________________________________________ http://www.silverstones.com/thebat/TBUDLInfo.html
