[Chicago-talk] REGEX question
Mike Pastore
mike at oobak.org
Fri Apr 16 18:24:21 CDT 2004
Have you tried using split?
On Fri, 2004-04-16 at 17:36, Richard Solberg wrote:
> Hi all,
>
> I have a regex question. In Camel it states the two
> cases.
>
> $html = "exasperate"
>
> 1) $html =~ /e(.*?)e/ # $1 = "xasp"
>
> 2) $html =~ /.*e(.*?)e/ # $1 = "rat"
>
> I have a problem that would be solved if I could get
> an array filled with $array[0] = "xasp" and
> $array[1]="rat", $array[2] = third set of characters
> between 2 e's , $array[n] = .... until no more matches
> found.
>
> Any help appreciated.
>
> Richard Solberg
>
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - File online by April 15th
> http://taxes.yahoo.com/filing.html
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at mail.pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
More information about the Chicago-talk
mailing list