I am trying to find funny words like "hahahaha" and "lolololol" in a string.
I am currently using the following regex:
^((.*?)|)(\b[ha]|\b[lo])(.*?)$
However, this does not work for my purposes. It works, but it also matches words completely unrelated to laughter, such as “kill,” because it just searches for any word containing the letters l, o, h, a.
How can I detect funny words (like "hahaha" or "lololol") in a string?
gamehelp16
source share