Home : General : Perl Programming :

General: Perl Programming: Re: [Andy] $scores =~ s/???//sg;: Edit Log

Here is the list of edits for this post
Re: [Andy] $scores =~ s/???//sg;
Do you know what .(.*?.) is doing ??

You know that ^ is a special character too right?

Something like this is far more accurate:

Code:
($win, $loss, $tie) = $scores =~ m/(\d{1,3})\^(\d{1,3})\^(\d{1,3})/s;

Last edited by:

Paul: Oct 23, 2002, 3:44 AM

Edit Log: