Test, validate and match regular expressions
This regex matches birthday greetings including variations like 'Happy birthday', 'Happy bday', 'HBD', and playful forms with repeated characters (e.g., 'happpyyy birthdayyy'). It's case-insensitive and optionally captures a name following 'to' in phrases like 'Happy birthday to John'. Useful for parsing social media messages, greeting cards, or chat applications.