You could reverse the string , regex and match.
$string =~ /(god .*? eht)/i;
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
PS: Je suis Charlie!
In reply to Re: Pattern matching: Lazy vs. greedy by LanX in thread Pattern matching: Lazy vs. greedy by false_friend