validation: {
pattern: {
value: "^\d+([ ](SS|FS|SF|FF))?([+]\d+)?([(]\d+[)])?[*]?$",
......
this is my string value 1 SS+1(1)*
Why it is wrong ????
in console : /^\d+([ ](SS|FS|SF|FF))?([+]\d+)?([(]\d+[)])?[*]?$/.test( '1 SS+1(1)*' ) that is true .
also I am testing it on web service https://regex101.com/#javascript - that is also true
pattern: {
value: "^\d+([ ](SS|FS|SF|FF))?([+]\d+)?([(]\d+[)])?[*]?$",
......
this is my string value 1 SS+1(1)*
Why it is wrong ????
in console : /^\d+([ ](SS|FS|SF|FF))?([+]\d+)?([(]\d+[)])?[*]?$/.test( '1 SS+1(1)*' ) that is true .
also I am testing it on web service https://regex101.com/#javascript - that is also true