anon.penet.fi hacking
Johan Helsingius
julf at penet.FI
Mon Mar 1 08:48:11 PST 1993
> >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
More information about the cypherpunks-legacy
mailing list