On Thursday 08 February 2001 07:40, Michael Dearman wrote:
> > > And the | is using '\d' and 'prem'. It probably should be
> > > "/(div\d)|prem/ Unless those parens are part of the expression.
> > > Then
>
> And after a second look, yea the \d is tightly bound to the div.
> But in confirming this,
Christian Reiniger wrote:
>
> On Wednesday 07 February 2001 21:50, Michael Dearman wrote:
> > > }
> > > elseif( preg_match( "/^\d+$/", $arg[$i], $matches ) )
> >
> > Isn't this \d+ matching --^
> >
> > > {
> > > $value = $matches[0];
> > >
On Wednesday 07 February 2001 21:50, Michael Dearman wrote:
> > }
> > elseif( preg_match( "/^\d+$/", $arg[$i], $matches ) )
>
> Isn't this \d+ matching --^
>
> > {
> > $value = $matches[0];
> > }
> > elseif( preg_match( "/(div\d|prem)
> }
> elseif( preg_match( "/^\d+$/", $arg[$i], $matches ) )
Isn't this \d+ matching --^
> {
> $value = $matches[0];
> }
> elseif( preg_match( "/(div\d|prem)/", $arg[$i], $matches ) )
the \d in this-^^
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
(Lee Stretton) wrote:
> elseif( preg_match( "/^[a-zA-Z]+$/", $arg[$i], $matches ) )
> elseif( preg_match( "/(div\d|prem)/", $arg[$i], $matches ) )
> The first 3 work fine, but the last one "/(div\d|prem)/" doesnt work
> proper
5 matches
Mail list logo