Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
jkushwaha
/
code
like
0
Model card
Files
Files and versions
xet
Community
jkushwaha
commited on
Mar 6, 2024
Commit
5857a49
·
verified
·
1 Parent(s):
1e40b9d
Create reg.py
Browse files
Files changed (1)
hide
show
reg.py
+6
-0
reg.py
ADDED
Viewed
@@ -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