hello!
I'm trying to use the POSIX regex syntax in PHP, and having a bit of
trouble with word boundary separators.
The basic syntax i have seen in the various tutorials i have read over the
last bit all suggest some variation on \< and \> or :<: and :>:, etc. i
have even seen code that uses:
[[:<:]][:alnum:][[:>:]] to match a word containing alphanumeric
characters.
however, i cannot seem to get this to work at all. every time i enter:
:<: in a regex, it does not match. if i enter [[:<:]], i get an error
stating that there is an "mbregex compile err: invalid POSIX bracket type"
in my file ...
any ideas what's going on?
thanks.
[please do not suggest that i use the preg_ functions instead ... i need a
multibyte character set (utf-8) compatible regular expression engine.]
mark.
--
I am not an ANGRY man. Remove the rage from my email to reply.
Comment