Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Regex helpby BrowserUk (Patriarch) |
on Jun 23, 2007 at 02:46 UTC ( [id://622942]=note: print w/replies, xml ) | Need Help?? |
Update: It does work when I get the syntax of the negative lookahead assertion correct. (?!...) not (?!=...)! Try this:
Expanded out that regex is:
That begs to be generated from some kind of shorthand spec. and actually, you used such a spec in your question. 'ABCDECFG' is a perfect spec. once you think of those letters as placeholders rather than literal characters. Update: And here is a generator:
I wonder if the golfers could reduce that to a one-liner? Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|