View Single Post
Old 12-13-2008, 12:47 AM   #5 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
Wildhoney is on a distinguished road
Default

Thanks Salathe. Yes, I did mean that. Either a space or a line break, but it would seem a space in this context behaves as a new line as well. Why is this? I thought it would look for a space, and so I had to specify either a space or a new line.

The following regular expression appears to work just fine, even if the link appears at the end of a line followed by a line break:

Code:
/(http:\/\/.+?)\s/ig
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote