Reg. 'repeated pattern' matching

From: Balaji thoguluva (bbthog2_at_yahoo.co.in)
Date: 02/26/04


Date: Thu, 26 Feb 2004 02:29:13 +0000 (GMT)
To: beginners@perl.org

Hi,
 
    I have a question on pattern matching. Assume I have a line like this consisting of header field(via) and values(IPaddress) repeated like below
 
via: 192.168.6.100; via:192.168.6.101; via: 203.290.89.90; ......so on
 
I would like to know how many via: header field occur and to get each via header field value. I want to know how to loop through each via header field to extract the value by pattern matching expressions.
 
Thanks in advance,
Balaji
 
  
 
 

Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.



Relevant Pages

  • Re: Reg. repeated pattern matching
    ... Assume I have a line like this consisting of header fieldand valuesrepeated like below ... > I would like to know how many via: header field occur and to get each via header field value. ... I want to know how to loop through each via header field to extract the value by pattern matching expressions. ...
    (perl.beginners)
  • RE: Reg. repeated pattern matching
    ... I have a question on pattern matching. ... line like this consisting of header fieldand ... : I would like to know how many via: header field occur and to ...
    (perl.beginners)
  • Re: Show Field for First Record in Group Only
    ... > "Simon Shutter" wrote in message ... >>>I would make sure the header section and detail section are the same ... >>> Duane Hookom ... I want to add a header field to each group of records on a report. ...
    (microsoft.public.access.reports)
  • Re: [xnews] new icons and formatting?
    ... >>> News servers and agents aren't required to support anything more than ... > limit on the length of header lines, body lines, /or header logical ... Each header field is logically a single line of characters comprising ...
    (news.software.readers)
  • Re: Hellow again
    ... Some service providers archive every message that is transmitted. ... Check this box to prevent such a service from archiving any of the messages you post in any group by adding an "X-No-Archive:yes" header field to the message. ...
    (news.software.readers)