Regular Expressions 101

Community Patterns

2

US Postal Code

ECMAScript (JavaScript)
refactor
Submitted by jay johnson - 10 years ago
1

test

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 10 years ago
1

erferf

PCRE (PHP <7.3)
no description available
Submitted by anonymous - 10 years ago
1

rfrf

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

Regex to find URLs in text

1

Regular Expression
ECMAScript (JavaScript)

/
(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$;-])*
/
gim

Description

Loading markdown...
Submitted by Saheed Odulaja - 5 months ago