Regex validation in Silverlight RIA services
-
I am just doing some testing with RIA services for a new app. Most of the fields have validation so i thought the validation attributes in RIA services would work well. The app involves taking user input and creating an xml file that validates against an xsd. The xsd specifies regular expressions to validate some of the fields so i thought i could copy them and use them as regularexpression attributes in RIA services but its not working. For example according to the info i was given this regex: ([A-Z0-9\(\)\-/'&]+)|([A-Z0-9\(\)\-/'&][A-Z 0-9\(\)\-/'&]*[A-Z0-9\(\)\-/'&]) should allow upper case alpha and numbers plus some specific characters but when tested it alows either upper or lower case alpha. any ideas on why its not working or what it actually breaks down to. Jon