jackdarippa
09-07-2009, 05:13 AM
Hello all,
I have a problem involving regular expression, i come from a web background and it seems alot easier to use regular expression in those languages. However, what im trying to do is validate a text field. The constraints are: only a-z, both upper and lower case and the value -. (as it can be a dash). Other characters such as ,.&, 123...9 are not allowed. Can anyone help with this.
sample code i am sort of using is: regEx.Pattern = "[a-zA-Z]$"
Can anyone shed some light on this.
Jac
I have a problem involving regular expression, i come from a web background and it seems alot easier to use regular expression in those languages. However, what im trying to do is validate a text field. The constraints are: only a-z, both upper and lower case and the value -. (as it can be a dash). Other characters such as ,.&, 123...9 are not allowed. Can anyone help with this.
sample code i am sort of using is: regEx.Pattern = "[a-zA-Z]$"
Can anyone shed some light on this.
Jac