Post Reply 
Basic Negate Question
Oct. 12, 2010, 06:17 PM (This post was last modified: Oct. 13, 2010 01:30 AM by qz33.)
Post: #4
RE: Basic Negate Question
Great so far! Thanks.
So I tried this

(src|href)="http://*.(^arstechnica).*

against href="http://static.arstechnica.com/apple/ (yes I know it is missing a closing quotation)

and it did not match which is what I wanted and expected.

but when I put the " . " in the negated sub-expression like this

(src|href)="http://*.(^arstechnica.)*

it matches against href="http://static.arstechnica.com/apple/

which again I think it should not but I do not understand why as it seems that it would match up to the FIRST " . " then everything after IS "arstechnica.com/apple/" which should not match the because of the (^arstechnica.) part.

So can someone help with the why here

I guess I really should be using (src|href)"http://\0.(^arstechnica.)\1\2
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Basic Negate Question - qz33 - Oct. 12, 2010, 12:43 PM
RE: Basic Negate Question - JJoe - Oct. 12, 2010, 03:15 PM
RE: Basic Negate Question - whenever - Oct. 12, 2010, 03:31 PM
RE: Basic Negate Question - qz33 - Oct. 12, 2010 06:17 PM
RE: Basic Negate Question - JJoe - Oct. 13, 2010, 12:30 AM
RE: Basic Negate Question - qz33 - Oct. 13, 2010, 02:35 AM

Forum Jump: