Need a second set of eyes for the regex

I have to be missing something simple here

I have a string
My test String<UN_MUSIC_TAG></UN_MUSIC_TAG>

I want to remove the UN_MUSIC_TAGS

when i call my function this is the string i get returned
My test String</

Please help, i have been looking at this to long, it has to be something simple

i have this array set up
String[] m_patterns = {"<o:p>.*(\\r\\n)*.*</o:p>",
                          "<o:p>.*(\\r\\n)*.*</O:p>",
                          "<\\?xml:.*(\\r\\n).*/>",
                          "<\\?xml:.*(\\r\\n).*(\\r\\n).*/\\?>",
                          "<\\?xml:.*(\\r\\n).*(\\r\\n).*/>",
                          "<\\?xml:(.*(\\r\\n)).*/\\?>",
                          "<\\?[Xx][Mm][Ll]:.*/>",
                          "<o:SmartTagType.*(\\r\\n)*.*/>",
                          "<o:smarttagtype.*(\\r\\n)*.*/>",
                          "<\\?<\\?RP:.*/\\?>",
                          "<V:SHAPETYPE.*>",
                          "</V:SHAPETYPE.*>",
                          "<!#END>",
                          "<?UN_TITLE>",
                          "<?UN_DIR_IMAGE>",
                          "<?UN_WELCOME_TEXT>",
                          "<?UN_BOTTOM>",
                          "<?UN_TOP>",
                          "<?UN_UPDATETAG>",
                          "<?UN_MAILIMAGE>",
                          "<?UN_MUSIC_TAG>",
                          };

I    public String regExpCleanup(String htmlInput) {

        Pattern[] m_clearStyle = new Pattern[m_patterns.length];
        for (int i = 0; i < m_patterns.length; i++) {
            m_clearStyle[i] = Pattern.compile(m_patterns[i],Pattern.CASE_INSENSITIVE|Pattern.MULTILINE);
        }

        String parsedHtml = new String();
        parsedHtml = htmlInput;


        for (int i = 0; i < m_patterns.length; i++) {
            parsedHtml = m_clearStyle[i].matcher(parsedHtml).replaceAll("");
        }

        return parsedHtml;
    }

   
   
pariesAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
>>
I have a string
My test String<UN_MUSIC_TAG></UN_MUSIC_TAG>

I want to remove the UN_MUSIC_TAGS
>>

UN_MUSIC tags is all the *is* in the String. Do we assume it has text between the tags?
CEHJCommented:
>>UN_MUSIC tags is all the *is* in the String

should have said


UN_MUSIC_TAG tags is all there *is* in the String
pariesAuthor Commented:
there may or may not be data between the tags
ozoCommented:
Did you mean to say
    "</?UN_MUSIC_TAG>",
where you have
    "<?UN_MUSIC_TAG>",

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.