dcsimg
regular expression in validation.xml
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   om_prakash
Posted On:   Thursday, February 3, 2011 06:52 AM

hi, i am using struts1,and i want to validate the user input. so i have given regular expression in validation.xml but i also want to validate double quotes(").Actually i want to allow user to enter (").So how can i add this expression in my validation.xml. i m giving the code for ur reference.... mask ^[a-zA-Z0-9 /.;,#'@&()_-]*$ i have tried with " , " but they all are not working... Can any 1 help me... Thank in advance.    More>>

hi,

i am using struts1,and i want to validate the user input. so i have given regular expression in validation.xml but i also want to validate double quotes(").Actually i want to allow user to enter (").So how can i add this expression in my validation.xml.



i m giving the code for ur reference....









mask

^[a-zA-Z0-9 /.;,#'@&()_-]*$




i have tried with " , "

but they all are not working...

Can any 1 help me...



Thank in advance.    <<Less
About | Sitemap | Contact