wait - i re-read your problem statement and read it as removing the 
structured-content tags and attributes only... is that correct?

if so, this will remove all opening and closing structured-content tags and 
their attributes only and leave everything else:

<\/*structured-content[^>]*>

"find any amount of leading slashes followed by 'structured-content' 
followed by any amount of anything as long as it's not a closing tag 
greater than sign"




On Sunday, May 12, 2019 at 1:26:42 PM UTC-7, Christopher Stone wrote:
>
> On 05/12/2019, at 14:26, cosmo <[email protected] <javascript:>> wrote:
>
> thx for answering but it seems you did not read my post, i don't want to 
> convert the xml to text or remove all tags ... i need to find and delete 
> *SPECIFIC* tags *WHILE PRESERVING ALL OTHER TAGS*
>
> ------------------------------
>
> Hey Cosmo,
>
> Clearly I *did* read your post, because I responded to it – but obviously 
> I overlooked this requirement.
>
> Note that the code above is just a very simple example to illustrate, it 
> gets much more complicated than that with tables, mathml, figures etc 
> inside the tags to be removes ... there isn't a repetitive pattern to the 
> content that can be inside the tags to be stripped, it could be anything so 
> i want to be sure that i don't delete anything else than the enclosing tag.
>
>
> You really can't do this job with a regular expression search and replace, 
> because of the unpredictable complexity of the tag.
>
> You should post one or two examples of really complex tags, because it 
> might be possible to use AppleScript or Perl to do the job.
>
> --
> Best Regards,
> Chris
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <https://www.twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/2d547d3d-1cfe-46a7-a5d6-d06f9817c8af%40googlegroups.com.

Reply via email to