English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

The regex should match a full url. think about port, parameters and special characters.
e.g. http://www.787.com:80/?test1=value%20two?something=more

if you can point me to a url that contains the regex (some regex collection) would be best.

2006-09-25 17:54:38 · 2 answers · asked by christian 1 in Computers & Internet Programming & Design

2 answers

I asked a question earlier on a similar subject without much response perhaps some of the links I found might help you:
http://www.gidforums.com/t-1816.html
https://www.zend.com/codex.php?id=512&single=1
http://www.codingforums.com/archive/index.php?t-17776.html

2006-09-25 18:14:07 · answer #1 · answered by Interested Dude 7 · 0 0

On a lark (I don't use regex that often) I can think of:

(http\:\/\/\S+)\s+

That should be enough since URL can't have space in its midst, is \s stands for blank space? Saved the match to $1 by the pair of ().

2006-09-25 18:17:22 · answer #2 · answered by Andy T 7 · 0 0

fedest.com, questions and answers