I have a string like "9 mesi in cotone EURO 3+ss" or "9 mesi in cotone 3 EURO +ss" and I would like to get the integer value before or after the word EURO, depends on string format (I don’t know how the user will send it)
Can anyone help me, please?
I have a string like 9 mesi in cotone EURO 3+ss or 9 mesi
Share
Something like this:
The regular expression may need to be adjusted depending on the locale (space thousand separators, commas, etc).
If working with integer values, the regex simplifies to: