2 Replies Latest reply: Sep 29, 2008 4:02 PM by Sean DeMerchant RSS

    Quick Regexp Help

    Doigy Community Member
      Hi,

      Wondering if someone can help me.


      I'd like to replace the following code

      <body bgcolor="#FFFFFF">
      some text<br>
      <br>

      with this

      <body bgcolor="#FFFFFF">
      <h1>some text</h1>

      on many files.


      Can I do this with regular expressions? Is this the best way?


      Eg. Search for

      <body bgcolor="#FFFFFF">
      (\w+)<br>
      <br>

      Replace with

      <body bgcolor="#FFFFFF">
      <h1>(\w+)</h1>