$ echo http://www.example.com/index.html //comment |
perl -pe 's{\s(//.*$)}{ <tag>$1</tag>}'
http://www.example.com/index.html <tag>//comment</tag>

で、どうでしょ。