[Tutor] Regex Ordering
I'm looking for a Python module that provides methods for ordering regexes based on how general they are ( how much they match). Do I have to write it myself or does something exist already. Shidan ___ Tutor maillist - Tutor@python.org
[Tutor] List of regular expressions
x=re.compile(pattern) if regex.match('24110'): the_pattern = pattern . . sys.exit(0) but in this case it will pick thelist[2] and not the list[3] as I wanted to, how can I have it pick the pattern that describes it better from the list.