Regular expression help
Joel Pearson
pearj at iprimus.com.au
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\(
\ \)+<\/option/
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
~~~~~~~~~~~~~~~~~~~~~~~
Joel Pearson
Email: pearj at writeme.com
ICQ:1580379 <http://web.icq.com/wwp/1,,,00.html?Uin=1580379>
MSN: joelpearson at hotmail.com
<http://members.msn.com/default.msnw?mem=joelpearson@hotmail.com&pgmarke
t=en-au>
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the linux
mailing list