Regular Expressions 101

Sponsors

Library entries

0
javascript

email regex

check mail regex
Submitted by anonymous - 2 hours ago
0
javascript

mr regexp

Рег
Submitted by anonymous - 6 hours ago
0
pcre2

Links

Beginner way to highlight links
Submitted by anonymous - 7 hours ago
0
javascript

变成一行

把代码变成一行一个属性
Submitted by naoyuyan - 2 days ago
0
pcre2

TTB fund acc 1

my work space
Submitted by anonymous - 2 days ago
1
pcre2

Custom Commit ReGex

Custom Commit ReGex Test
Submitted by Kewal Rathod - 3 days ago
-1
pcre2

213

12312
Submitted by anonymous - 3 days ago
-1
pcre2

1

1
Submitted by anonymous - 3 days ago
0
golang

匹配邮箱

[A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+) `
Submitted by Lintao - 4 days ago
0
pcre2

Drealth

just a normal text to the drealth emojis
Submitted by NobreHD - 5 days ago
0
javascript

Mez regex #3

This is the #3 regex used in Mez
Submitted by anonymous - 6 days 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