Advertisement
Hppavilion1

Match Regex

Jan 22nd, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. for re in regexes:
  2.     if regexes[re].match(s):
  3.         return re
  4.  
  5. # Or something like that; not sure about the .match method. I assume that you've already compiled the regexes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement