Re: RexExp [OR]

From: Date: Wed, 02 Aug 2000 15:59:05 +0000
Subject: Re: RexExp [OR]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9732@lists.php.net to get a copy of this message
Hi Michael! On Tue, 01 Aug 2000, Michael Richardson wrote: > Thanks in advance for your time. > > I have an expression that can contain 0-9 or the word MAX, and nothing else. > preg_match( '/^(\d+|MAX)$/',$target, $match); > I am aware of how to do it in multiple lines using if/then comparisons with > ereg matches. However, I would like to increase my programming prowess (and `m' modifier is for multiple lines. -- teodor

« previous php.general (#9732) next »