M
Mike Andrews
Guys,
I've got a regular expression that will just not work. I can't get it
work properly and I would like to see if someone out there can tell me
if I'm doing this wrong, or if there is a problem with the regex C
library for linux.
Here's my regular expression:
[<|\[]+(a|input|select|option|textarea|form|frame|iframe|area|base|link|icon:[\w]*)\s*(([^<>]|[^\[\]])*)[>|\]]
Now, this fails to match:
<icon:set name="bob" value="bob">
However, when I use this regular expression:
[<|\[]+(a|input|select|option|textarea|form|frame|iframe|area|base|link|icon:[\w]*)\s*(([^<>]|[^\[\]])*)[>]
it matches correctly. All I did was remove the |\] from the ending
character class. I really don't understand what I'm missing here.
If anyone has any suggestions, I would really appreciate it.
Thanks,
Mike Andrews
Farpointer Technologies, Inc.
I've got a regular expression that will just not work. I can't get it
work properly and I would like to see if someone out there can tell me
if I'm doing this wrong, or if there is a problem with the regex C
library for linux.
Here's my regular expression:
[<|\[]+(a|input|select|option|textarea|form|frame|iframe|area|base|link|icon:[\w]*)\s*(([^<>]|[^\[\]])*)[>|\]]
Now, this fails to match:
<icon:set name="bob" value="bob">
However, when I use this regular expression:
[<|\[]+(a|input|select|option|textarea|form|frame|iframe|area|base|link|icon:[\w]*)\s*(([^<>]|[^\[\]])*)[>]
it matches correctly. All I did was remove the |\] from the ending
character class. I really don't understand what I'm missing here.
If anyone has any suggestions, I would really appreciate it.
Thanks,
Mike Andrews
Farpointer Technologies, Inc.