import re
sstring = "ON Any ON Any"
rx = re.compile(r''' \bON\ ANY\b ''', re.VERBOSE|re.IGNORECASE)
for a in rx.findall(sstring): 
	print(a)
