Closed gdamjan closed 14 years ago
The current regex "\b((http://|www\.)[\S]*)\b" doesn't grab the last slash from url's. A better regex is needed.
run re:run("www.google.com/abc/", "\b((http://|www\.)[\S]*)\b", [caseless, {capture, [1], binary}]). in the "erl" repl to see/test the problem.
Commit: 59cee0e95ab27dbb1828b0dfacd4450b1f79ed33 has a good enough sollution to this
The current regex "\b((http://|www\.)[\S]*)\b" doesn't grab the last slash from url's. A better regex is needed.
run re:run("www.google.com/abc/", "\b((http://|www\.)[\S]*)\b", [caseless, {capture, [1], binary}]). in the "erl" repl to see/test the problem.