in reply to s/// to replace HTTP address with a space

Can you show some sample data? Your pattern works fine for me.

perl -le '$foo = "blah blah http://www.foo.com/ blah blah"; $foo =~ s/ +http\S+/ /ig; print $foo' blah blah blah blah