12-13-2008, 12:47 AM
|
#5 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
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.
|
|
|