- Original Message -
From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]>
To: "'Kevin Stone'" <[EMAIL PROTECTED]>; "PHP-General"
<[EMAIL PROTECTED]>
Sent: Tuesday, July 01, 2003 12:19 PM
Subject: RE: [PHP] Reg Ex to search for both In
> -Original Message-
> From: Kevin Stone [mailto:[EMAIL PROTECTED]
> Sent: 01 July 2003 18:07
>
> $string = "Mark's average score was 544.";
> preg_match("/average score was ([0-9]+)/", $string, $matches);
> $score = $matches(1);
>
> $string = "Julie's average score was 10,443.";
> preg_m
On Wednesday 02 July 2003 01:07, Kevin Stone wrote:
You have started a new thread by taking an existing posting and replying to
it while you changed the subject.
That is bad, because it breaks threading. Whenever you reply to a message,
your mail client generates a "References:" header that tells
I'm a little confused by something. I need to build a reg-ex to scrape for
both plain integers and comma spaced integers in the same place in the same
string at the same time. For example..
$string = "Mark's average score was 544.";
preg_match("/average score was ([0-9]+)/", $string, $matches);
4 matches
Mail list logo