Hello,
In PHP3, I am using code which using the regular expression capability of
PHP. The code matches all occurences of string prefixed by __ (2
underscores) and having alphanumeric characters as well as _ (1 underscore)
within it.
Advertising
The code is as follows:
while (eregi("__([a-z0-9_]+)__", $ExpandedString, $Matches)) {
....
}
In PHP 4, the regular expression "__([a-z0-9_]+)__" does not seem to work. I
tried "__([[:alnum:]_]+)__" also but that too did not work.
Looks like the problem is with combining two ranges and a literal within the
regular expression....
Any solution would be appreciated?
With Regards,
Sharat
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php