Post Reply 
[solved] Negative regex / subdomain
May. 30, 2010, 12:29 AM (This post was last modified: May. 30, 2010 01:02 PM by anewuser.)
Post: #1
Big Grin [solved] Negative regex / subdomain
Can somebody please help me with a regex that matches links to all Wikipedia domains but en.wikipedia.org? For example, I want to filter:
Code:
http://it.wikipedia.org/wiki/Lala
and
Code:
http://es.wikipedia.org/wiki/Lala
but not
Code:
http://en.wikipedia.org/wiki/Lala

I've tried this, but it didn't work:
Code:
/<a href="http://(?!en)\.wikipedia\.org/.*?".*?</a>/
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
[solved] Negative regex / subdomain - anewuser - May. 30, 2010 12:29 AM
RE: Negative regex / subdomain - anewuser - May. 30, 2010, 01:01 PM
RE: Negative regex / subdomain - Graycode - May. 30, 2010, 01:09 PM

Forum Jump: