in reply to Re: pattern match hangs on malformed UTF-8 input
in thread pattern match hangs on malformed UTF-8 input

Now I'm really shooting in the dark. Stick a use re 'debug' at the top of your script and post the results. Maybe that'll tell us something.