Regular Expressions 101

Community Patterns

1

js

ECMAScript (JavaScript)
no description available
Submitted by sd - 10 years ago
-1

Find image style

ECMAScript (JavaScript)
style img
Submitted by anonymous - 10 years ago
106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

SFTP or FTP url

2

Regular Expression
PCRE (PHP <7.3)

/
(?<protocol>s?ftp):\/\/(?:(?<user>[^@\s]+)@)?(?<host>[^\?\s\:]+)(?:\:(?<port>[0-9]+))?(?:\?(?<password>.+))?
/
g

Description

Loading markdown...
Submitted by Cullen Johnson - 10 years ago