Click here to Skip to main content
16,005,121 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRegular Expression messing about Pin
Chris Maunder29-Apr-02 21:12
cofounderChris Maunder29-Apr-02 21:12 
GeneralRe: Regular Expression messing about Pin
Andrew Peace30-Apr-02 1:38
Andrew Peace30-Apr-02 1:38 
GeneralRe: Regular Expression messing about Pin
Chris Maunder30-Apr-02 1:47
cofounderChris Maunder30-Apr-02 1:47 
GeneralRe: Regular Expression messing about Pin
Andrew Peace30-Apr-02 15:13
Andrew Peace30-Apr-02 15:13 
GeneralRe: Regular Expression messing about Pin
Jason Jystad30-Apr-02 13:11
Jason Jystad30-Apr-02 13:11 
GeneralRe: Regular Expression messing about Pin
Chris Maunder30-Apr-02 14:18
cofounderChris Maunder30-Apr-02 14:18 
GeneralRe: Regular Expression messing about Pin
Jason Jystad30-Apr-02 14:34
Jason Jystad30-Apr-02 14:34 
GeneralRe: Regular Expression messing about Pin
Jason Jystad1-May-02 9:28
Jason Jystad1-May-02 9:28 
Any further activity on this Chris?

I found my notes, they do not help with the above problem but the way I arrived at the solution to what you are doing above was slightly different. I thought I would post it, in case it helps you out or gives you some other ideas.
(ht|f)tps?:\/\/(\w+\.)+\S+

I tested it on your page to verify that it worked, and it seems to do exactly what yours does.

I will think about the above problem some more when I can and see if I can think of a solution for that.

One other thing I should point out is that this will only catch those urls that have an http:// or something in front of them, not the simple www.codeproject.com ones. I think it would be nice to catch these too.

A simple modification to catch URLs without the http:// could go like this:
((ht|f)tps?:\/\/)?(\w+\.)+\S+

Damn, now I have the itch to go write some PERL!! Big Grin | :-D

Jason Jystad
Cito Technologies
Sonork ID: Ogami(100.9918)

There ain't nothin' in this world that's worth being a snot over.
--Larry Wall

GeneralRe: Regular Expression messing about Pin
Jack Handy2-May-02 10:12
Jack Handy2-May-02 10:12 
GeneralRemote database access Pin
alex.barylski29-Apr-02 14:53
alex.barylski29-Apr-02 14:53 
GeneralRe: Remote database access Pin
Philip Patrick30-Apr-02 9:54
professionalPhilip Patrick30-Apr-02 9:54 
GeneralProblem with getting a web service to work with my ASP .Net Client Pin
Ranjan Banerji29-Apr-02 8:26
Ranjan Banerji29-Apr-02 8:26 
GeneralRe: Problem with getting a web service to work with my ASP .Net Client Pin
Ranjan Banerji29-Apr-02 8:50
Ranjan Banerji29-Apr-02 8:50 
GeneralPlain Vanilla HTML Pin
Roger Wright27-Apr-02 17:11
professionalRoger Wright27-Apr-02 17:11 
GeneralRe: Plain Vanilla HTML Pin
Jon Sagara29-Apr-02 7:56
Jon Sagara29-Apr-02 7:56 
GeneralRe: Plain Vanilla HTML Pin
Roger Wright29-Apr-02 13:50
professionalRoger Wright29-Apr-02 13:50 
GeneralRe: Plain Vanilla HTML Pin
Jon Sagara29-Apr-02 20:56
Jon Sagara29-Apr-02 20:56 
GeneralRe: Plain Vanilla HTML Pin
Roger Wright30-Apr-02 2:40
professionalRoger Wright30-Apr-02 2:40 
GeneralRe: Plain Vanilla HTML Pin
Chris Maunder30-Apr-02 2:12
cofounderChris Maunder30-Apr-02 2:12 
GeneralRe: Plain Vanilla HTML Pin
Roger Wright30-Apr-02 2:41
professionalRoger Wright30-Apr-02 2:41 
Questionphp or asp? Pin
27-Apr-02 14:16
suss27-Apr-02 14:16 
AnswerRe: php or asp? Pin
Fernando Finelli28-Apr-02 3:57
Fernando Finelli28-Apr-02 3:57 
GeneralRe: php or asp? Pin
l a u r e n28-Apr-02 4:58
l a u r e n28-Apr-02 4:58 
GeneralRe: php or asp? Pin
Ravi Bhavnani28-Apr-02 7:31
professionalRavi Bhavnani28-Apr-02 7:31 
GeneralRe: php or asp? Pin
Fernando Finelli29-Apr-02 4:38
Fernando Finelli29-Apr-02 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.