[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Search for all the occurrences of the pattern in the stri
From: |
arnold |
Subject: |
Re: [bug-gawk] Search for all the occurrences of the pattern in the string |
Date: |
Fri, 27 May 2016 06:58:55 -0600 |
User-agent: |
Heirloom mailx 12.4 7/29/08 |
"Andrew J. Schorr" <address@hidden> wrote:
> Hi,
>
> On Thu, May 26, 2016 at 05:18:46PM -0500, Ehsan Hajiramezanali wrote:
> > I want to search for all the occurrences of the pattern in a string.
> > However, 'match' only returns the first occurrence of the string.
>
> Please take a look at the split() and patsplit() functions. Also, please
> consider whether this is a bug or a question that should instead be asked in
> the comp.lang.awk Usenet group.
>
> Regards,
> Andy
Andy is on target here - the split and patsplit functions are what
you need.
Thanks,
Arnold