Please Log in to join the conversation.
This errors with "Quantifiers can only be used after a token that can be repeated" for PHP and JS. It's not valid. Whatever language it was written for won't work in PHP or JS.^$?\-?([1-9]{1}[0-9]{0,2}(\,\d{3})*(\.\d{0,2})?|[1-9]{1}\d{0,}(\.\d{0,2})?|0(\.\d{0,2})?|(\.\d{1,2}))$|^\-?$?([1-9]{1}\d{0,2}(\,\d{3})*(\.\d{0,2})?|[1-9]{1}\d{0,}(\.\d{0,2})?|0(\.\d{0,2})?|(\.\d{1,2}))$|^\($?([1-9]{1}\d{0,2}(\,\d{3})*(\.\d{0,2})?|[1-9]{1}\d{0,}(\.\d{0,2})?|0(\.\d{0,2})?|(\.\d{1,2}))\)$
This will only match your following example in PHP and JS.at regexr.com I tried /^[1-9]{1,3}\.\d{3}\.\d{3}|[1-9]{1,3}\.\d{3}/ with success, but if I add this in CB, it doesn't work well:
That's because the REGEXP isn't strict enough. The below will prevent that.This works in regexr.com , but in CB it is possible to add
435.43543543
2.324zzz
/^[1-9]{1,3}\.\d{3}\.\d{3}|[1-9]{1,3}\.\d{3}$/
Same issue as above. You're missing the trailing $. The below should work fine to prevent such issues.The same at /^[1-9]{1,3}\.\d{3},\d{2}/
here it should be ok with: 1.000,00, but it is also ok with 1.000.0000, or 1.000,92e4
/^[1-9]{1,3}\.\d{3},\d{2}$/
Please Log in to join the conversation.
/^[1-9]{1,3}(?:\.[0-9]{3})*?$/
/^[1-9]{1,3}(?:[,][0-9]{2}|(?:\.[0-9]{3})*(?:,[0-9]{2})?)$/
Please Log in to join the conversation.