XPath filtering expression
-
I have an XML that has a price field with values of, for example, “10 USD”, and I can’t filter with XPath to get only products with the rule “equals or greater than” because the field should contain only numbers for the filtering to work.
Is there a way to remove everything except or the numerical characters? I have tried with str_replace and preg_replace, but maybe I can’t find the correct expression for this?
Many thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘XPath filtering expression’ is closed to new replies.