Do you mean that you want to match everything that doesn't have $expr in it?
As with most regex it probably won't work but try... :-)
-z0-9]*($expr){0,0}[-!_.\/
that should match it a min of 0 and a max of 0? sorta seems logical but i think i'm missing something. Let me know anyways.
Do you reckon you could help me with parsing urls from a string? I posted earlier but no one answered. I'm trying to parse all the links in a string and I need to get the url + the title from them.
preg_match_all("'<a\s+href\s= \s\"\'[\"\']\s?> (<[>]+>(.)<[>]+></a> | .alt\s=\s*\"\'[\"\']></a>)'iUx", $this->sFile, $matches, PREG_SET_ORDER);
I made a simple one ages ago but I need it to work with nested font declarations etc an alt tags.
Thanks,
Billy