#!/usr/bin/perl open FH,'istA.xml'; @contents = <FH>; @entites = ("&",""","<"); foreach $con (@contents){ if($con =~ m/\&.*;/){ print $con; } }
In reply to Check for string in array and substitue by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |