I'm not an expert at regular expressions by any stretch of the imagination! I understand the basics of how regex comes together, but through a regular expression, can I search for two words that could appear anywhere within a piece of text?
i.e. the words hot and weather. Could be written as:
the weather was hot
during the hot weather
the weather has become even hotter
Is it possible that a regex can be created to pick up all three scenarios, but not (for example) the picture was shot in poor weather?
Any help would be appreciated - I'm working in PHP5.6 by the way alternative is there a better way to do it that I haven't thought of?