This project is read-only.

Regular expression validation on string

Jun 6, 2015 at 7:16 PM
Hi ,
I have used your .dll in WCF with [ValidateDataAnnotationsBehavior] , its really amazing.
Its working fine , except Strings. I have used it with multiple set of regx, but its not working fine with strings.
[RegularExpression("([a-zA-Z0-9 .&'-]+)")]
[RegularExpression("([a-zA-Z0-9 .&'-]+)")]
My requirement is it contains only alphanumeric, numeric and (-) dash.

Please look into this, its something urgent for me.I'll be waiting for your kind solution and suggestion.

Gourav Vishnoi