Regular Expressions 101

Community Patterns

Happy birthday

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?i)\b(?:hap+y+\s*b(?:irthday+|da?y+)|HBD+)\b(?:\s*to\s*([^\d\s]+))?
/
gm

Description

happy birthday with various variations

Submitted by AdiGro - a month ago