Regular Expressions 101

Community Patterns

IRC protocol prefix parsing

1

Regular Expression
PCRE (PHP <7.3)

/
(?: ([a-zA-Z0-9]+))|(?: :(.+))?
/
g

Description

select each argument and retrieve data

Submitted by kerosene2000 - 8 years ago