Im still learning the ropes with Python ad regular expressions and I need some help please! I am in need of a regular expression that can search a sentence for specific word
Have you though to use something beyond Regex?
Consider this and and if it works expand from this solution
>>> 'total' in question.split() True
Similarly
>>> words = {'total','staff'} >>> [e for e in words if e in question.split()] ['total', 'staff']