in reply to Regex with HTML::Entities

Dear Monks, thanks a lot for your fast and more than helpful comments and proposals. Meanwhile I solved the problem, and -- as ikegami assumed -- the $text-variable was in utf-8 while the $sepb-variable was not. Encoding this variable together with the appropriate quoting suggested by the other monks solved the problem immediately. So, thank you very much for your useful advices!!! Best regards, Horst

Replies are listed 'Best First'.
Re^2: Regex with HTML::Entities
by ikegami (Patriarch) on Nov 24, 2021 at 03:54 UTC

    Encoding this variable together with the appropriate quoting suggested by the other monks solved the problem immediately

    You should have made sure both strings were *decoded*.