Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex placa de carro

//[A-Z]{3}[-]{,1}[0-9][0-9A-Z][0-9]{2}$ //Aceita AAA0A00 ou AAA-0A00
var regex = '[A-Z]{3}[0-9][0-9A-Z][0-9]{2}';
var placa = 'AAA0A00';
    
if (placa.match(regex)) {
  	// placa válida
}
Source by ricardo.coelho.eti.br #
 
PREVIOUS NEXT
Tagged: #regex #placa #de #carro
ADD COMMENT
Topic
Name
2+4 =