Your first example matches the regex, but regex-group(1) is the whole string: position the parentheses differently if you just want the number.
Your second and third examples don't match because the regex makes the decimal point mandatory, and the third one also doesn't match because "ft" is not in your list of units of measure accepted by the regex.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|