[thelist] REGEX Problem
The Lists
thelists at antonakis.co.uk
Wed May 12 15:58:06 CDT 2004
Hi,
I'm having a wee problem with REGEX's.
I have the following line of text, of which I want to get rid of
everything between and including the brackets.
C-FDRK (A320-211 84 204 AC) 2024 20040506 AC0632 (CYUL-CYHZ)
So far I have:
ereg_replace("\(.*.\) ","",$message[$i])
Which produces:
C-FDRK 2024 20040506 AC0632 (CYUL-CYHZ)
I know the '$' symbol is used for representing the end of a line, but
how can I alter the above expression to basically say replace anything
within brackets, if in the middle of text AND also if at the end of the
line?
Here's hoping
Alexis
More information about the thelist
mailing list