Regular Expressions 101

Community Patterns

1...56789...589

Get string inside http or https and @

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(https?:\/\/).*(@.*)
/
gm

Description

Get the string inside an http or https and @something

Submitted by aleix soler - a year ago