Regular expression help

Joel Pearson pearj at
Tue Dec 10 12:24:14 EST 2002

Thanks to everyone who suggested regular expressions to me, they were
very helpful.


In the end I decided to go with this regular expression, which should be
fine as long as there is no more than 1 set of brackets in the name:

/value=(.{3})> \(([^\)\(]*|[^\(]*\([^\)]*\)[^\)]*)\)+/
-Sent by Brian Graham


Kim's suggestion of: /value=(\([A-Z]{3,4}\))> \(([^<]+)\) \1\(

Seemed to be the best option, but for some reason or another it didn't
want to work in php. (Something to do with backreferencing I think)


Thanks again to everyone for your help





Joel Pearson

Email: pearj at

ICQ:1580379 <,,,00.html?Uin=1580379> 

MSN: joelpearson at


-------------- next part --------------
HTML attachment scrubbed and removed

More information about the linux mailing list