fork download
  1. <?php
  2. $file = "...\n" .
  3. "<div id=\"phrase_of_day\">\n" .
  4. " <div>\n" .
  5. " <span class=\"icon quote\"></span>\n" .
  6. " <h1>Frase do Dia</h1>\n" .
  7. " <blockquote><p>value to change</p></blockquote>\n" .
  8. " </div>\n" .
  9. "</div>\n" .
  10. "...";
  11. '/(<div id="phrase_of_day">.*?<blockquote><p>)([^<]+)(<\/p><\/blockquote>)/s',
  12. '$1hello world$3',
  13. $file);
  14.  
  15. print $o;
  16. ?>
Success #stdin #stdout 0.02s 13064KB
stdin
Standard input is empty
stdout
...
<div id="phrase_of_day">
    <div>
        <span class="icon quote"></span>
        <h1>Frase do Dia</h1>
        <blockquote><p>hello world</p></blockquote>
    </div>
</div>
...