[Solved] Regular expression in python string [closed]

[ad_1]

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

[ad_2]

solved Regular expression in python string [closed]