Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Hidden Traps in Regular Expressions.
/^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\\\/])+$/
instead of /(https?:.../i
I’m sure there exists proper java libraries to parse an URL.
There are no comments on this comment yet.
/^([hH][tT]{2}[pP]://|[hH][tT]{2}[pP][sS]://)(([A-Za-z0-9-~]+).)+([A-Za-z0-9-~\\\\/])+$/
instead of /(https?:.../i
I’m sure there exists proper java libraries to parse an URL.