[ILUG] regexp to match anything except a line that starts with
something specific
Caolan McNamara
caolan at skynet.ie
Mon Oct 11 10:46:44 IST 2004
I'm trying to make a regexp which will match any line except a line that
starts with "slot:" I've got ^([^s]|s[^l]|sl[^o]|slo[^t]|slot[^:]).*
which matches any line that doesn't have "slot:" in it, but lines that
don't start with "slot:" but nevertheless contain it are still matched
by the regexp. Any ideas ? It's got to be a regexp for other
constraints.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.linux.ie/pipermail/ilug/attachments/20041011/62b2bc1c/attachment.pgp
More information about the ILUG
mailing list