Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(?:#|https?:\/\/)[^\s]+
/
g

Description

Filter Hashtags and Links in a string

Submitted by Akali - 2 years ago