RE: [PHP] RexExp [OR]

From: Date: Wed, 02 Aug 2000 16:58:49 +0000
Subject: RE: [PHP] RexExp [OR]
Groups: php.general 
Request: Send a blank email to php-general+get-9749@lists.php.net to get a copy of this message
-----Original Message----- From: Teodor Cimpoesu [mailto:teo@digiro.net] Sent: Wednesday, August 02, 2000 8:59 AM To: Php-General (E-mail) Subject: Re: [PHP] RexExp [OR] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#9749) next »