Here's my expression:

$data = "xyz_%split%_$10.21";
preg_match ("/^.*_\%split\%_$(\d*\.\d*)/", $data, $match);

Returns nothing (escaping the $ with a \ does the same), but this returns
10.21:
preg_match ("/^.*_\%split\%_\D*(\d*\.\d*)/", $data, $match);

How is it done?

-- 
Randall Perry
sysTame

Xserve Web Hosting/Co-location
Website Development/Promotion
Mac Consulting/Sales

http://www.systame.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to