This is a migrated thread and some comments may be shown as answers.

[Solved] Validation pattern wrong

1 Answer 125 Views
Grid
This is a migrated thread and some comments may be shown as answers.
petr
Top achievements
Rank 1
petr asked on 26 Mar 2015, 06:23 PM
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 

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 30 Mar 2015, 03:40 PM
Hello Petr,

The question does not look to be related to KendoUI but it is specific to Regex area. Please post the question on the appropriate forums.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
petr
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or