Regular Expressions 101

Sponsors

Library entries

SFTP or FTP url

Vote

2

Regular Expression
pcre

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

Description

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