To complete my example, and to clarify the confusion, I want the closing span to always be just in front of the tag -- be it <br /> or </p> -- at the end of each line. So this is the desired result...
<p>First line<br /> another line<br /> <span class="ind2">another line</span><br /> another line<br /> <span class="ind2">last line.</span></p> I can see it would be difficult to make a general purpose script, but remember, the old script did work fine; it just doesn't work for XHTML docs. But as I mention in my second post above, a grep would do what I need just as well. But my brain doesn't seem to be able to grasp grep. So can someone tell me the grep to "select all the text after an opening span tag and before the tag at the end of that line"? With that in hand I can probably put it into a copy of a working script that will iterate through the selection. I used to be able to script, a bit. Rob -- 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. To unsubscribe from this group, send email to bbedit+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
