import re regex = r"^(?!.*Handikaplı).*^(?!.*Yarı).*^(?!.*Alt).*Maç Sonucu.*$[\\s\\S]*?>1<[\\s\\S]*?[\\>](-|\\d\\d*\\.\\d\\d|\\d\\d*)" test_str