Skip navigation
Mikique
Currently Being Moderated

My Regular Expression is not replaceing lines with <br /> in them

Apr 25, 2012 10:46 AM

Tags: #cs4 #dreamweaver #code #regex #breaking #regexp #/> #dreamweaver_cs4 #<br #expression #regular #regular_expressions #regular_expression_broken #<br/>

here is my problem

 

This is my original Code:

<p class="x3-subheading-1">DEGREE: Bachelor of Accountancy<br />MAJOR: Accounting</p>

 

I want to find and replace all instances of this subheading class with this:

<h3>******************</h3>

 

 

This is what has worked for me for ones without <br />:

Find:           <p class="x3-subheading-1">([^<]*)</p>

 

Replace:      <h3>$1</h3>

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points