jkushwaha commited on
Commit
5857a49
·
verified ·
1 Parent(s): 1e40b9d

Create reg.py

Browse files
Files changed (1) hide show
  1. reg.py +6 -0
reg.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ import re
2
+
3
+ def find_matching_sentences(text):
4
+ pattern = r'\b[aA]-[bB]-[cC].*?[xX]-[yY]-[zZ]\b'
5
+ matching_sentences = re.findall(pattern, text)
6
+ return matching_sentences