Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^.*[i|I]'?[m|M](.+)$
/

Description

Get whatever comes after user says I'm (any spelling errors included). Meant to be used with a bot which replies "Hello <string>. I'm Dad!"

Submitted by anonymous - 7 years ago