in reply to Re: Parsing out URLs with regex
in thread Parsing out URLs with regex
Agreed. When working on code for heavy use, don't reinvent the wheel.
For learning purposes, though, you don't want (\w*) for the maximum number of consecutive word characters, you want (.*?) for the minimum number of characters followed by the closing quote.
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Parsing out URLs with regex (diedotstar)
by tye (Sage) on May 14, 2003 at 19:46 UTC | |
by halley (Prior) on May 14, 2003 at 19:51 UTC | |
by tye (Sage) on May 14, 2003 at 19:56 UTC |