Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Regular Expression with JSU

wajih zouaoui
Contributor
May 3, 2019

Hello,

 

i'm using JSU for Regular expression and i need to have a match with a number field with an exemple like:

12.1234 ( MAX  for 2 digits before dot and 4 digits after dot )

 

I'm actually using this Regex: /((^[0-9]{0,2})$|(^[0-9]{0,2}[.][0-9]{0,4}?))$/

This expression is matching with an empty field or 12 or 12.1233 but still not working in JSU .

 

Can you please help ?

 

thanks in advance.

 

 

1 answer

0 votes
Partibha Rani
Contributor
October 17, 2019

Hello,

JSU works as normal Java regex. In your case, you can trying using [0-9]{0,2}\.+[0-9]{0,4} For more information please see https://confluence-apps.beecom.ch/display/JSU/Regular+Expression+Check+Validator

For any kind of support, you can always raise a ticket on https://servicedesk-apps.beecom.ch/servicedesk/customer/portal/3

Thanks

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events