Pastebin
Paste #1542: regex example
< previous paste - next paste>
Pasted by chrivers
if match(reg1, line): foo, bar = M.groups() elif match(reg2, line): .. elif match(reg3, line): .. else: ..
New Paste
Go to most recent paste.
< previous paste - next paste>
if match(reg1, line): foo, bar = M.groups() elif match(reg2, line): .. elif match(reg3, line): .. else: ..
Go to most recent paste.