Regular Expressions 101

Community Patterns

5

ipv6

PCRE (PHP <7.3)
Match an ipv6 address
Submitted by Frusty - 7 years ago
9

only numbers

PCRE (PHP <7.3)
A string with only numbers in
Submitted by Gotts - 8 years ago
4

Phone number

PCRE (PHP <7.3)
no description available
Submitted by Mark Landry - 8 years ago
3

Cisco ASA

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 8 years ago
3

hj

PCRE (PHP <7.3)
hj
Submitted by hj - 8 years ago

URLs and Emails RegEx

0

Regular Expression
.NET (C#)

@"
((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w\-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[.\!\/\\w]*))?)
"
ig

Description

Loading markdown...
Submitted by kosalanuwan - a year ago