Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 939 Bytes

tools-summary.md

File metadata and controls

37 lines (24 loc) · 939 Bytes

scala io (better-files)

scalikejdbc

json

tokenizers

python regex to match http urls

regex = re.compile(
    r'^(?:http|ftp)s?://' # http:// or https://
    r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
    r'localhost|' # localhost...
    r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}|' # ...or ipv4
    r'\[?[A-F0-9]*:[A-F0-9:]+\]?)' # ...or ipv6
    r'(?::\d+)?' # optional port
    r'(?:/?|[/?]\S+)$', re.IGNORECASE)

(from: http://codereview.stackexchange.com/questions/19663/http-url-validating)