in reply to Re: String Manipulation Help Required
in thread String Manipulation Help Required

Thanks Gopal.R

Your solution is of great help. Thanks.

The Regex failed when the "<entity></entity> is changed to "<item></item>". This was attempeted with the intention that the first level element have the same name.

The Error can be over come, if "</item>" tag does not occur in the search string. Something like below

$strFile=~s#<entity ([^>]+)>\s*(.+?)<i>negating regex here </i><produc +t (min="[^"]+" max="[^"]+")

Please advice solution as I am a novice Regex Developer.

Thanks in advance.