First of all sorry for my bad english. I\'m a german guy.
The code given below is working fine in PHP:
$string = preg_replace(\'/href=\"(.*?)(\\.|\\,)\"/
You have to escape the block selector characters ( and ) as follows.
(
)
sed 's/href="\(.*?\)\(.|\,\)"/href="{$\1}"/g' test.htm