Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

loop regex

re_list = [
    'd+.d*[L][-]d*s[A-Z]*[/]d*', # re1 in question,
    ...
    'd+[/]d+[A-Z]*d+sd+[A-z]s[A-Z]*', # re4 in question
]

matches = []
for r in re_list:
   matches += re.findall( r, string)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #loop #regex
ADD COMMENT
Topic
Name
6+2 =