Re: XML/HTML-specific ?< and ?> operators? (was Re: RFC 145 (alternate approach))
[email protected] (Tom Christiansen) Wed, 06 Sep 2000 12:09:20 -0600
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <15581.968263760@chthon> |
>I am working on an RFC
>to allow boolean logic ( && and || and !) to apply a number of patterns to
>the same substring to allow easier mining of information out of such
>constructs.
What, you don't like: :-)
$pattern = $conjunction eq "AND"
? join('' => map { "(?=.*$_)" } @patterns)
| join("|" => @patterns);
--tom