Hi I created a regex that would detect a question where it is starting with
"What is _____?"
(?:what is ([a-zA-Z]+)\?)
"What is dinner" // returns true
what is breakfast and lunch? // returns false
Use this regex:
(?:[Ww]hat is (([a-zA-Z]+\s*)+)\s*\?)
\1 will return the part after "What is".
(([a-zA-Z]+\s*)+) will match multiple space separated words.