This works:
import re
s=""'customer is given as per below
customer are given not priority below
given given below customer
below customer information given
customer is given not as per below'''
matches = re.findall('customer \S+ given \S+\s\S+ below', s)
for match in matches:
print(match)
14
solved Regular expression in python string [closed]