Morning everyone,

first of all apologies if my initial posts wasn't specific enough and my 
first replies came across as unpolite, i've had some rather frustrating 
forum experiences last week and think i might have inadvertently slipped 
into 'oh no not again'-mode, and clearly this is not that :)
Also not a fan of this google forum software which doesn't let me edit my 
inital post for clarification and seem to put replies where it wants and 
not where they should be, might be just me but i find it very hard to 
follow threads where several people are replying to different posts.

hope you wont hold it against me, i'm not usually such an ass :P


so back to the issue at hand:

*Chris* your solution:

<structured-content[^>]+>(.+?)</structured-content>
>
 
works great, however i forgot to mention that the <structured-content ... > 
tags can also contain other <structured-content> tags like this:

<structured-content>some random text here
<random-tag>with some other random content</random-tag> and more text
<structured-content>can be here also
<structured-content>or <more-random>here</more-random> as well
</structured-content> maybe here too
</structured-content>and also here
</structured-content>


in these cases it will use the end tag of the inner tag as closing tag .. 
so that doesn't work in these cases .. but still very cool to see this 
solution and i'm learning a lot from it. I don't suppose there is a way to 
modify your solution to work in this case since i don't know upfront if or 
how many sub-tags there are in each.


*Bruce* your solution

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

seems safer since it finds the opening and ending tags separately ... since 
i need to remove *all* <structured-content> tags this works for me (i think 
.. still stepping through one file testing to make sure i don't remove 
anything i shouldn't and there arent other special cases i hadn't thought 
of)



-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" 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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
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/a7f75880-2ad2-4066-ba8f-c4a3717681b0%40googlegroups.com.

Reply via email to