0

I am using regular expression validation in asp.net and have two regular expressions First is to prevent special characters [A-Za-z0-9_]+ Second is to validate min max range (\s|.){6,15}

I want to merge these tow in one validation expression, please suggest me how I can do it

4

2 回答 2

1

If I understood the question correct:

[A-Za-z0-9_]{6,15}
于 2013-03-30T13:28:35.027 回答
1

Maybe

"[A-Za-z0-9_\s]{6,15}"

is what you need.

于 2013-03-30T13:28:43.807 回答