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 ]
In reply to Re: Re: Parsing out URLs with regex
by halley
in thread Parsing out URLs with regex
by xtomservox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |