Regular Expressions 101

Sponsors

Library entries

0
pcre

Europe - Spain - Passport Number

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Spain - NIE

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Spain - National ID Number

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Spain - License Plate

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Spain - IBAN

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Spain - Email

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Spain - Driver's License

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Portugal - IBAN

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Portugal - Email

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Portugal - Driver's License

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Lithuania - TIN

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Lithuania - License Plate

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Lithuania - IBAN

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Lithuania - Email

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Lithuania - Driver's License

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Latvia - Passport Number

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Latvia - National ID Number

no description available
Submitted by anonymous - 2 years ago
0
pcre

Europe - Latvia - License Plate

no description available
Submitted by anonymous - 2 years ago

IPv4 and MAC addresses

Vote

0

Regular Expression
pcre

/
\b( # MAC address like xx:xx:xx:xx:xx:xx [0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2}:[0-9a-f]{2} | # MAC address like xx-xx-xx-xx-xx-xx [0-9a-f]{2}-[0-9a-f]{2}-[0-9a-f]{2}-[0-9a-f]{2}-[0-9a-f]{2}-[0-9a-f]{2} | # MAC address like xxxx.xxxx.xxxx [0-9a-f]{4}\.[0-9a-f]{4}\.[0-9a-f]{4} | # IPv4 address in dotted-quad format # Not a lot of value for our needs in checking range of each octet # Need to be more mindful of performance here anyway. \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3} )\b
/
ix

Description

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