Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

regex data

//all types, only number

^(?:(?:31(/|-|.)(?:0?[13578]|1[02]))1|(?:(?:29|30)(/|-|.)(?:0?[1,3-9]|1[0-2])2))(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:29(/|-|.)0?23(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1d|2[0-8])(/|-|.)(?:(?:0?[1-9])|(?:1[0-2]))4(?:(?:1[6-9]|[2-9]d)?d{2})$|(?:(?:1[6-9]|[2-9]d)?d{2})(/|-|.)(?:(?:0?[1-9])|(?:1[0-2]))5(?:0?[1-9]|1d|2[0-8])$|^(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(/|-|.)0?26(29)$|^(?:(?:1[6-9]|[2-9]d)?d{2})(?:(?:(/|-|.)(?:0?[1,3-9]|1[0-2])8(?:29|30))|(?:(/|-|.)(?:0?[13578]|1[02])9(?:31)))$

//all types month = text (pt)

^(?:(?:31(/|-|.)(?:jan|mar|mai|jul|ago|out|dez))1|(?:(?:29|30)(/|-|.)(?:(?:jan|mar|abr|mai|jun|jul|ago|set|out|nov|dez)2)))(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:29(/|-|.)(?:fev)3(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1d|2[0-8])(/|-|.)(?:jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)4(?:(?:1[6-9]|[2-9]d)?d{2})$|^(?:(?:1[6-9]|[2-9]d)?d{2})(/|-|.)(?:jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)5(?:0?[1-9]|1d|2[0-8])$|^(?:(?:(?:1[6-9]|[2-9]d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(/|-|.)(?:fev)6(29)$|^(?:(?:1[6-9]|[2-9]d)?d{2})(?:(/|-|.)(?:(?:jan|mar|abr|mai|jun|jul|ago|set|out|nov|dez)8(?:29|30))|(?:(/|-|.)(?:jan|mar|mai|jul|ago|out|dez)9(?:31)))$
Comment

PREVIOUS NEXT
Code Example
Javascript :: onchange value in hidden input 
Javascript :: jquery countdown timer 
Javascript :: get current url react router 
Javascript :: antd react native 
Javascript :: how to loop trough an object java script 
Javascript :: how to set visibility in javascript of html title 
Javascript :: enviar formulario por ajax 
Javascript :: javascript concat two arrays 
Javascript :: falsy values javascript 
Javascript :: sequelize operators 
Javascript :: debouncing js 
Javascript :: join 2 array in javascript 
Javascript :: javascript check if property exists in object 
Javascript :: AWS JavaScript SDK node 
Javascript :: Print array of objects js 
Javascript :: •“In React, everything is a component.” Explain 
Javascript :: react js pdf generate from html 
Javascript :: sentry ignore errors 
Javascript :: react testing for links 
Javascript :: npm config proxy 
Javascript :: randomize an array in javascript 
Javascript :: react native navigation remove top header screen 
Javascript :: htpp status 
Javascript :: angular animation scale width and height 
Javascript :: vue 3 router redirect 
Javascript :: update node js 
Javascript :: canvas rounded corners on image 
Javascript :: Environment key "jest/globals" is unknown 
Javascript :: Divide the number in js 
Javascript :: hypot javascript 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =