How to match any word in a String with Regex in PHP
问题 I have these strings. I want a regular expression to match them and return true when I pass them to preg_match function. do you want to eat katak at my hometown? do you want to eat teloq at my hometown? do you want to eat tempeyek at my hometown? do you want to eat karipap at my hometown? How do I create a pattern in regex that will match the above pattern? Like this: do you want to eat * at my hometown? Asterik (*) means any word. Here is the regex pattern that I have so far: $text = "do you