Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

Credit Card Expiry Date

13

Regular Expression
ECMAScript (JavaScript)

/
^(0[1-9]|1[0-2])(\/|-)([0-9]{4})$
/
gm

Description

Loading markdown...
Submitted by Rider - 9 years ago