Regular Expressions 101

Sponsors

Library entries

0
pcre2

C/F temp unit

me
Submitted by anonymous - 16 days ago
0
python

Postcode (UK)

Detects UK postcodes (minimal edge cases)
Submitted by anonymous - 17 days ago
0
python

PO Number

Detects specific prefixes followed by number series
Submitted by anonymous - 17 days ago
0
python

Credit Note

Detects specific word in a sentence
Submitted by anonymous - 17 days ago
0
pcre2

Postfix

Add DR to end of line
Submitted by anonymous - 17 days ago
0
python

dice thing

Stuff for a dnd thing
Submitted by Cata - 17 days ago
0
python

完形填空

完形填空
Submitted by anonymous - 19 days ago
0
python

恩更

非法发
Submitted by anonymous - 19 days ago
0
python

CPF|CNPJ

Match Brazilian documents
Submitted by Bacco - 19 days ago
0
pcre

Time in hh:mm:ss

19h32min16s
Submitted by anonymous - 20 days ago

Visa - 10/09/18

Vote

0

Regular Expression
javascript

/
\b(4[0-9]{3}[ -])([0-9]{4}[ -]){2}[0-9]\b|\b4[0-9][0-9]{11}\b|\b(4[0-9]{3}[ -])([0-9]{4}[ -]){2}(?:[0-9]{4})?$\b|\b4[0-9][0-9]{14}\b|\b(4[0-9]{3}[ -])([0-9]{4}[ -]){3}(?:[0-9]{3})?$\b|\b4[0-9][0-9]{17}\b
/
gm

Description

Loading markdown...
Submitted by anonymous - 4 years ago