Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex placa de carro

var regex = '[A-Z]{3}[0-9][0-9A-Z][0-9]{2}';
    var placa = 'AAA0A00';
    
    if (placa.match(regex)) {
    	// placa válida
    }
Comment

regex placa de carro

<?php
    
    $regex = '/[A-Z]{3}[0-9][0-9A-Z][0-9]{2}/';
    $placa = 'AAA0A00';
    
    if (preg_match($regex, $placa) === 1) {
        // placa válida
    }
Comment

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
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: Function As Parameter In Self Invoking Function 
Javascript :: MongoDB Express Find All In Database 
Javascript :: check if the last character of word is "A" 
Javascript :: RTC measure react native undefined 
Javascript :: actual jquery 
Javascript :: Save Function To Different Name 
Javascript :: weakset use cases javaScript 
Javascript :: Star Wars Celebration 
Javascript :: aboutreact axios 
Javascript :: react extends component with style 
Javascript :: js change img ssrc 
Javascript :: jquery check screen width 
Javascript :: string inverter vs property binding in angular 
Javascript :: react axios POST with super constructor parent class 
Javascript :: ticket draw 
Javascript :: Mirror Inverse Program in javascript 
Javascript :: angularjs $q all hash 
Javascript :: get a nodes path alias 
Javascript :: mongoose lookup array of objects 
Javascript :: HSET redis, HINCRBYFLOAT redis 
Javascript :: Is It Negative Zero (-0)? js 
Javascript :: react leaflet layer disable controls while on top 
Javascript :: javascript call example 
Javascript :: javascript detect if active element is writable 
Javascript :: javascript split string into groups of n 
Javascript :: using Canvas with tkinger draw arc 
Javascript :: react native pass params to previous screen 
Javascript :: Plumsail - DataTable Cascading Dropdowns 
Javascript :: mongoose auto delete after time 
Javascript :: React.js setState on page load not working, how to fix 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =