Regular Expressions 101

Community Patterns

used with irssi script fnotify's output with nm.pl enabled

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 - 8 years ago