in reply to Re: Debug and workaround help
in thread Debug and workaround help

The Functionality works if the $string value is changed to as below
my $string ='<item name="a"><text></text></item><vertical name="Busine +sses" combination="and"> <Busines name="Content"> <BusinessNames min-entity="1" max-entity="10">';

I think the "</description>" needs to be handled differently in the search and replace regex.

Replies are listed 'Best First'.
Re^3: Debug and workaround help
by prasadbabu (Prior) on Jun 28, 2005 at 06:38 UTC

    After removing the description part, you are getting correct output, because it has special characters which has to be escaped. Whenever if you have any special characters in the search pattern you need to use \Q...\E. You go through perlre.

    Prasad