18 lines
458 B
Python
Raw Normal View History

import re
2024-08-29 16:37:09 +08:00
test_text = """
xxxxxxxxxxxxxxxxx
附录 投标人资质条件能力和信誉资格审查标准
xxxxxx
附表一招标文件澄清申请函
xxxxxxxxxxxxxxx
"""
pattern = r'^(?:附录(?:一)?[:]|附件(?:一)?[:]|附表(?:一)?[:]).*(?:资质|能力|信誉).*$'
match = re.search(pattern, test_text, re.MULTILINE)
2024-08-29 16:37:09 +08:00
if match:
print("匹配到的行:", match.group())
else:
print("没有匹配到符合条件的行")