Grep is a beautiful thing. I realize now how awful my original attempt was.

I've now replaced the "p" tags with "div" tags using this:

FIND:

<p class=\"topic\"><a name=\"(\w+?)\"></a>([\s\S]*?)</p>

REPLACE:

<div class=\"pgtopic\"><a name=\"\1\"></a>\2</div>

Voila! 

What I need now is something that says, "Look between <div class="topic"> 
and the first </div> that follows it. Find instances where an uppercase 
character is followed by another uppercase character. Turn these instances 
into title case."

I'm not going to worry about turning "&" into "&Amp;". I can fix that 
easily enough once the title case script finishes running.

Any ideas?

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to