Click here to Skip to main content
15,904,348 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
buenas noches quisiera saber si me pueden colaborar con la expresion regular en vb.net regex donde se valide que en un textbox solo se ingrese estos dos tipos de cadenas, tres letras y tres numneros o tres letras dos numeros y una letra

In English:
good night I wonder if I can collaborate with the regular expression regex in vb.net where you validate a textbox that only two types of chains enter three letters and three numbers or three letters two numbers and a letter
Posted
Updated 11-Aug-14 15:16pm
v3
Comments
Thanks7872 12-Aug-14 1:21am    
Please post questions in English only.

[a-zA-Z]{3}[0-9]{3}|[a-zA-Z]{3}[0-9]{2}[a-zA-Z]
 
Share this answer
 
Comments
PIEBALDconsult 11-Aug-14 21:16pm    
That might require parentheses.
If you mean these two patterns:
XXX999
XXX99X

Then this should work: [a-zA-Z]{3}[0-9]{2}[a-zA-Z0-9]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900