Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 13th, 2010  |  syntax: HTML  |  size: 0.40 KB  |  views: 92  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <pre>
  2. Inside a pre<br>tag (&lt;br&gt; tags should be replaced with newline)
  3. <!--
  4. this is a comment inside a pre tag to show the problem with using regex to replace <br> tags inside <pre></pre> tags with newline and it shouldn't be modified at all
  5. -->
  6. </pre>
  7. outside a pre<br>tag (&lt;br&gt; tags should stay unmodified)
  8. <pre>
  9. Inside a pre<br>tag (&lt;br&gt; tags should be replaced with newline)
  10. </pre>