Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\w+\s.\w+\s<.?)\s*(\w+>\s.*)
/
ig

Description

transforms: network #channel < nick> message network #channel <+ nick> message network #channel <@ nick> message to network #channel < nick> message network #channel <+nick> message network #channel @nick message

Submitted by anonymous - 9 years ago