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

can anyone tell me a regular expression to find a url within a string
thanks in advance

2007-03-08 00:36:52 · 1 answers · asked by cool321steve 3 in Computers & Internet Programming & Design

1 answers

Have to put line breaks so Y!A doesn't truncate...

(([a-zA-Z]
[0-9a-zA-Z+\\-\\.]*:)
?/{0,2}[0-9a-zA-Z;/?
:@&=+$\\.\\-_!~*'()%]
+)?(#[0-9a-zA-Z;/?
:@&=+$\\.\\-_!
~*'()%]+)?

2007-03-08 01:14:13 · answer #1 · answered by Rex M 6 · 0 0

fedest.com, questions and answers