Skip to content

Instantly share code, notes, and snippets.

import re
FILE_PATH = 'nginx-rewrite.txt'
RR = 'RewriteRule'
def relate(r):
ans = re.findall(r'rewrite\s*([^\s]+?)\s*([^;\s]+?);', r)
assert len(ans) == 1
return ans[0]
def solve(l, rs):
@1e0ng
1e0ng / gist:4315748
Created December 17, 2012 04:31
What's Gist?
This is.