in reply to Continue reading regex to next line

So, what should the output of
This is a test this is a test test test http://www.website5.com/getme. +html this is test
be? Note that http://www.website5.com/getme.htmltest is a perfectly valid URL.

Replies are listed 'Best First'.
Re^2: Continue reading regex to next line
by CountZero (Bishop) on Mar 02, 2009 at 22:13 UTC
    Since it is a perfectly valid URL there is no way of discarding the "junk" that is added.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James