in reply to url to html regex problem
UpdateYes, I just tested the code from the web page on my linux box, it worked with urls at the beginning of a line and in the middle of a line...
Update2 Yours works fine if I replace ^ with \b... but if you are trying to match urls at the beginning of a line that is not at the beginning of a string you need the m modifier on your regexp so the ^ will match after a newline, as well...
- Ant
- Some of my best work - Fish Dinner
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: url to html regex problem
by Anonymous Monk on Oct 05, 2001 at 23:18 UTC | |
|
Re: Re: url to html regex problem
by Anonymous Monk on Oct 05, 2001 at 23:26 UTC | |
by suaveant (Parson) on Oct 05, 2001 at 23:30 UTC | |
by Anonymous Monk on Oct 06, 2001 at 00:53 UTC |