Hi,
I have a requirement where I need to mach on 2 patterns from a input file and write to the output file.
Input file
<MappingData3 ExchangeIdentifier="LSE" ExchangeSymbol="FR00104554
85:ETFS:GB
X:FR" MarketSegment="ETFS" SecurityIdentifierType="SE
DOL" SecurityIdentifier="B1YZPF
7" IsoCountryIndicator="FR" Currency="GBX"
output File
B1YZPF7:FR0010455485:ETFS:
GBX:FR
I need the SecurityIdentifier field value and the ExchangeSymbol field value in the out put file. Please see the input file may contain 1000s of such records and ned to parse the whole input file to get output like bwlow.
B1YZPF7:FR0010455485:ETFS:
GBX:FR
B1Z2RL7:FR0010455485:ETF2:
USD:ZZ
Please see this is very urgent and I am new to perl so cant do this in ahort time and hence posting it for help.
Attaching input file for reference
Regards
Naveen
Start Free Trial