regex - Regular Expression function for maximum 15 characters -


i need regular expression reference number entered user takes maximum of 15 characters (numbers , letters only). how best implement this? here have tried date.

private static final string my_account_number = ("[^a-za-z0-9]"); 

^[a-za-z0-9]{1,15}$ 

^: start of string, followed by...

[a-za-z0-9]: ...any alphanumeric character...

{1,15}: ...1 15 times, followed by...

$: ...the end of string.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

c++ - Can not find the "fiostream.h" file -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -