mirror of
https://github.com/simon987/hexlib.git
synced 2025-04-18 01:16:43 +00:00
7 lines
211 B
Python
7 lines
211 B
Python
import re
|
|
|
|
LINK_RE = re.compile(r"(https?://[\w\-_.]+\.[a-z]{2,4}([^\s<'\"]*|$))")
|
|
HTML_HREF_RE = re.compile(r"href=\"([^\"]+)\"")
|
|
WHITESPACE_RE = re.compile(r"\s+")
|
|
PUNCTUATION_RE = re.compile(r"[.,;:\"!?/]+")
|