in reply to Curious Regex

The first part of your regex currently matches </Mil,p12.10,3,15,d>But he won<cm EQ>, not only </Mil,p12.10,3,15,d>.

If that's not what you want, you should change it to (</Mil[^>]*>).

Then you can go on with

m{ (</Mil[^>]*>[^\x90\x8F]*) [\x90\x8F] # your target characters... [^\x9D]* # anything but the terminator, # including \x90 and \x8F \x9D # the terminator }xs

(I hope I understood your question correctly).

Replies are listed 'Best First'.
Re^2: Curious Regex
by HamNRye (Monk) on Feb 11, 2009 at 18:20 UTC

    Moritz, thanks for the reply.

    The question is how do I substitute out any number of the control characters?

    Reading your match as written, It would match up to the first control character and then match everything after it. Including more control characters.