1 Mar
1993
1 Mar
'93
4:48 p.m.
Ok... Now.. Show me the regex that strips anything starting with '--', such as '-----------------------------', except a PGP boundary line...
OK. It's a mess. The backslash means line continuance. Remember that concatenation binds higher that alternation (|).
^--...([^B]|B[^E]|BE[^G]|BEG[^I]|BEGI[^N]|BEGIN[^ ]|BEGIN [^P]|BEGIN P[^G]\ |BEGIN PG[^P])
Hats off to you, Eric! Much better than I could do! But... It still doesn't strip off something starting with only "--" on a line by itself... Julf