THE ZEPINT NETWORKprogrammer assist |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL's in PHP stringsDiggBlinkRedditDeliciousTechnoratiquestion by Srirangan | Moderate Hello Re: URL's in PHP stringsreply by Anurag Regular Expressions to the rescue. Use ereg_replace(slower) or preg_replace(faster) Re: URL's in PHP stringsreply by Srirangan Thanks for the regex code. That works in most cases but not when there is a newline or <br/> tag. Any ideas how to make it work then? Re: URL's in PHP stringsanswer by Anurag [^...] means all characters except ... Re: URL's in PHP stringsreply by lexxwern Interesting piece of regex code Anurag. Do you have a link for the docs on regular expressions for PHP? Re: URL's in PHP stringsreply by lexxwern Anurag, please post the relevant link mate. Thanks! Re: URL's in PHP stringsreply by lexxwern Hey, ignore my previous message. I got a good source: http://www.regular-expressions.info Re: URL's in PHP stringsreply by Srirangan hey anurag, this regex code get's buggy when the link is followed by a '<' character. any suggestions for that? Re: URL's in PHP stringsreply by VGR regexp are always buggy to the bones, and they're unreadable, unmaintainable and sluggish. Got a PHP Question?Just Sign Up and ask the top PHP experts! |
PHP Experts
Leading Experts
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Copyright © 2007 Programmer Assist. All rights reserved. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||