RegEx help

0
Hi Team,   Need help on expression for accepting only numbers and dot(.)    Appreciate your help.   Thanks Salma
asked
3 answers
6
[0-9\.]+

This should work. I haven't tested it.

answered
2

Hi Ume,

You can find all information you need for that expression here:

https://docs.mendix.com/refguide/regular-expressions#expression

And in subexpressin you can see find the info regarding a dot. Quote:

. – a dot matches any single character. If you want to match a dot, you can escape it by prefixing it with a \ (backslash).

Regards

answered
2

Some helpfull sites:

http://www.regexlib.com

https://regex101.com/

note: test them in Mendix, before being sure ;-)

answered