Advertisement

07.09.2008 at 10:17AM PDT, ID: 23551049
[x]
Attachment Details

Pattern Match on Various fields

Asked by naveenraj in Perl Programming Language

Tags: ,

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="FR0010455485:ETFS:GBX:FR" MarketSegment="ETFS" SecurityIdentifierType="SEDOL" SecurityIdentifier="B1YZPF7" 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
NaveenStart Free Trial
Attachments:
 
input file
 
[+][-]07.09.2008 at 10:52AM PDT, ID: 21966358

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 10:55AM PDT, ID: 21966403

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Perl Programming Language
Tags: PERL, PERL
Sign Up Now!
Solution Provided By: ozo
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.09.2008 at 11:03AM PDT, ID: 21966486

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 03:07AM PDT, ID: 21971806

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.10.2008 at 03:10AM PDT, ID: 21971826

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628