
July 31st, 2011, 07:06 PM
|
|
Registered User
|
|
Join Date: Jul 2011
Posts: 1
Time spent in forums: 28 m 2 sec
Reputation Power: 0
|
|
|
Other - How to match a string which is not in the list?
I use the following to match a html tag, 'img' or 'a',
"/(<)([\/]?)([img|a][^>]*)(>)/"
[img|a] gives the string either 'img' or 'a'.
But, how to match a tag which is NOT either 'img' or 'a'?
Thanks.
|