Regular Expressions 101

Sponsors

Library entries

0
python

Url handling

Simple regex to split url
Submitted by Hangfish - 6 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
python

dice thing

Stuff for a dnd thing
Submitted by Cata - 18 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 - 20 days ago
0
python

SUBTOTAL

SUBTOTAL 15.88
Submitted by KRISHNA - 21 days ago
0
python

DEPIT INFO

K
Submitted by K - 21 days ago
0
python

Regex

wifiwnsml
Submitted by krishabj - 21 days ago
0
python

Log Analysis Google

final project
Submitted by anonymous - a month ago
0
python

find const string in code for xml/java

.
Submitted by anonymous - a month ago
0
python

matlab代码

matlab代码
Submitted by java - a month ago

Credit Card Match

Vote

0

Regular Expression
pcre

/
(?<!\w)((?<visa>4\d{3}([\ -]?\d{4})(?3)(?3)([\s-]?\d{3})?)|(?<mastercard>(?:5[1-5]\d{2}|222[1-9]|22[3-9]\d|2[3-6]\d{2}|27[01]\d|2720)(?3)(?3)(?3))|(?<amex>3[47]\d{2}([\s-]?\d{5})\d(?7))|(?<discover>6(?:011|[45]\d{2}|22[1-9]|2[4-6]\d|28[2-8])(?3)(?3)(?3)(?:\d{1,3})?)|(?<dc>3(?:[68-9]\d{2}|095|0[0-5]\d)(?:([\s-]?\d{6})|(?3)(?3))(?3)(?4)?)|(?<jcb>35[2-8]\d(?3)(?3)(?3)(?4)?)|(?<dankort>5019(?3)(?3)(?3))|(?<other>(?:5[06-9]\d{2}|5[6-9]\d{2}|6[0-9]\d{2})(?:(?3)(?3)(?3)(?4)?|(?10)(?7))))(?!\w)
/
gm

Description

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