Regular Expressions 101

Community Patterns

Get irc cmd with one parameter and a text with every charaters

1

Regular Expression
ECMAScript (JavaScript)

/
^\/([\w]*)(?:[\s]*)([\w\S]*)(?:[\s]+)*([\w\W]*)
/

Description

exemple: "/msg toto hello world !" ["msg", "toto", "hello world !"]

Submitted by vuong_c - 8 years ago