I am trying to match stand alone numbers in some comma separated string , after splitting this string by commas and save it to variable
$i, I use this regular expression:
- Example : (123) should return
- Example: (abc123) sholud return
- Example: (abc 123 abc) should return
But, it gives me:
[1.0-ml] XDMP-REGEX: (err:FORX0002) .
What is the wrong with this expression?
Lookahead and lookbehind are not supported in XQuery regex expressions.
However, you don’t need them if you are just looking to verify that the value is purely numeric values. You can anchor the expression to the beginning and end of the value and ensure that everything in-between is a number:
Answered By – Mads Hansen
Answer Checked By – Terry (BugsFixing Volunteer)