hexlib/regex.py
2019-11-19 15:33:48 -05:00

5 lines
131 B
Python

import re
LINK_RE = re.compile(r"(https?://[\w\-_.]+\.[a-z]{2,4}([^\s<'\"]*|$))")
HTML_HREF_RE = re.compile(r"href=\"([^\"]+)\"")