Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Regular Expresssions
#1
Hello,

 

I have a general question about Regular Expressions.

 

I am using Notepad++ and I want to replace a line for another in 100+ opened documents.

 

This is what I have:

 

<p class="block3"><img alt="Image" class="calibre6" src="../Images/image-11.jpeg" />


 

I want to replace it to something like this:

 

<img alt="Image" class="calibre6" src="../Images/image-11.jpeg" />

 

Q: how do I keep the img tag as is and remove the p tags in all opened documents (notice that the img class changes in each document)?

 

P.S: I used (<p class="block)[0-9]*(">) to capture the opening p tags

 

Thanks,

Reply


Messages In This Thread
[SOLVED] Regular Expresssions - SK+ - 11-30-2013, 12:24 PM
[SOLVED] Regular Expresssions - SK+ - 11-30-2013, 09:01 PM
[SOLVED] Regular Expresssions - JoWie - 11-30-2013, 09:54 PM
[SOLVED] Regular Expresssions - Bargeld - 12-01-2013, 11:43 PM
[SOLVED] Regular Expresssions - JoWie - 12-02-2013, 11:43 AM
[SOLVED] Regular Expresssions - SK+ - 12-03-2013, 04:59 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)