fork download
  1. <?php
  2.  
  3. $re = '~<a\s[^>]+\.zip[^"]*">.*?</a>$~';
  4. $str = '<a title="" href="http://s...content-available-to-author-only...e.ru/downloads/soft.zip">bestsoft</a>';
  5. $subst = '$0<hr />';
  6. $result = preg_replace($re, $subst, $str);
  7. echo "The result of the substitution is ".$result;
Success #stdin #stdout 0.01s 52488KB
stdin
Standard input is empty
stdout
The result of the substitution is <a title="" href="http://s...content-available-to-author-only...e.ru/downloads/soft.zip">bestsoft</a><hr />