Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

perl regular expression

Name: Anonymous 2010-01-13 19:26

for matching an URL string
well, i found this but it's not working:
 '(http|https)([:\/\w\s\d\.]*)/i'

Name: Anonymous 2010-01-13 22:11

have some test suite:
url 1. http://example.com/
url 2. http://www.example.com/
url 3. http://www.example.com:80/
url 4. http://www.example.com:80/Taste-banana.htm
url 5. https://example.com:8080/?page=test
url 6. https://example.com:8080/?page=test&subpage=7
url 7. https://example.com/unicode%E3%81%82
url 8. http://example.com/url+with%20spaces
url 9. www.asd.com/+asd&cd=1&hl=en&;ct=clnk" target='_blank'>http://209.85.129.132/search?q=cache:dABs2UlbjJgJ:www.asd.com/+asd&cd=1&hl=en&;ct=clnk
url 10. 4E29E23889B7@eris.apache.org%3E" target='_blank'>http://mail-archives.apache.org/mod_mbox/portals-pluto-scm/200902.mbox/%3C20090220223713.4E29E23889B7@eris.apache.org%3E
url 11. http://11example.org/~user/groar_v1.0.html
url 12. example.com/asd.htm#profit
url 13. www.example.com/America.ogg
url 14. http://example.com/[L]%20brackets(arefun).swf
url 15. http://example.com/"><h1>bidoof is on fire.html
url 16. http://asd.com"onclick="alert('weather forecast')
url 17. http://asd.com"style="background:black"/node304.html
etc.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List