Hi, all. I'm back for some additional reg-ex instruction...
I'm trying to remove <div> tags from a document in bulk, but can't seem to figure out what expression I should be using to find them.
Here's a sample of the code I'm working on:
Now, the expression I used (with the intent of replacing it with "\1") was:
Code:
<div class="calibre1">([^<]*)</div>
Naturally, it didn't work ("no results found"). I think I discovered the reason. the "<" in "([^
<]*)" is triggered by the
first instance of that character, i.e. the "<" in "<p class...". The bad news is that knowing the problem hasn't helped me find the solution. I've tried a bunch of other iterations that either match too much (the entire document) or nothing at all.
Can someone let me know where exactly my brain is letting me down?