[clug-talk] regex fu not strong enough
John Jardine
john_e_jardine at spamcop.net
Wed Jun 9 13:45:56 PDT 2010
Do the matched characters of the 2 regex overlap?
Ie string = "My Data String"
If
regex 1 matches "My Data"
regex 2 matches "Data String"
then you can't just chain them together. You'll have to match once per
regex.
After that, I vote for example data and the language you need it in.
Cheers,
J.J.
On Wed, 2010-06-09 at 11:16 -0600, Andrew Anderson wrote:
> Can anyone shed some light for me.
>
> I have two regex chunks that work well separately.
>
> (^(?!(RSS)) --- and --- [^?*/TabId/](\d+)(.*)
>
> As some of you may surmise this is a urlrewrite problem.
>
> My problem is that I need the overall statement to be true only if
> both of the individuals are true.
>
> I have tried to use the (?ifthen|else) conditional....
>
> (?(^(?!(RSS)))([^?*/TabId/](\d+)(.*)))
>
>
>
> but it's laughing in my face.... my regex fu isn't strong enough.
>
> Anyone have ideas?
>
>
>
>
> --
> This message has been scanned for viruses and dangerous content by the
> Cistra MailScanner, and is believed to be clean.
> _______________________________________________
> clug-talk mailing list
> clug-talk at clug.ca
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
More information about the clug-talk
mailing list