Test, validate and match regular expressions
This regular expression matches variations of common text-based laughter words such as "haha", "yaya", and "lol". It captures different combinations of vowels and consonants (h, y, l) typically used to express amusement in chat messages or social media comments. With the global and multiline flags, it is well-suited for filtering or extracting all instances of laughter from large blocks of user-generated text.