Regular Expressions 101

Community Patterns

1

Dates validation

PCRE (PHP <7.3)
Not accurate
Submitted by anonymous - 8 years ago
1

i

ECMAScript (JavaScript)
no description available
Submitted by anonymous - 8 years ago
1

EDI parser - INVRPT 97A

PCRE (PHP <7.3)
INVRPT:D:97A
Submitted by Ran Z - 8 years ago
0

EDI file

PCRE (PHP <7.3)
no description available
Submitted by Ran Z - 8 years ago
1

Spaces

PCRE (PHP <7.3)
Get all spaces in a string
Submitted by anonymous - 8 years ago

Detects IPv4 and IPv6 addresses

1

Regular Expression
PCRE (PHP <7.3)

/
^(?<ip_addr>((\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})|((([\da-fA-F]{1,4}:){7})([\da-fA-F]{1,4})$|(([\da-fA-F]{1,4}:){1,6}:)(([\da-fA-F]{1,4}:){0,4})([\da-fA-F]{1,4}))|(::[\da-fA-F]{1,4})|(([\da-fA-F]{1,4}:){0,7}[\da-fA-F]{1,4}::)))$
/
mg

Description

Loading markdown...
Submitted by Alan - 8 years ago