Regular Expressions 101

Community Patterns

hastags shortcuts

1

Regular Expression
PCRE (PHP <7.3)

~
#(!->|->|!)*(\w|\')+(?![^<]*[]>|[^<>]*<\/)
~
gu

Description

This regexp is used in the SPIP cms for create tags fastly when you are writting a post.

Submitted by pierre.laszczak@gmail.com - 8 years ago