Re: Making string upper/lowercase with regex?

From: Date: Tue, 29 Oct 2002 09:01:18 +0000
Subject: Re: Making string upper/lowercase with regex?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-121824@lists.php.net to get a copy of this message
Leif K-Brooks wrote: > I need a way to make a string be replaced with its uppercase version > using ereg_replace. Any ideas? > Chris Shiflett wrote: > >> Why must you use ereg_replace? >> >> Does your question mean that you, for whatever reason, cannot use >> strtoupper() instead? >> >> Leif K-Brooks wrote: >>> I don't want the entire string upercase, just part of it as defined >>> by a regex. Then use preg_replace. The PHP website has an example to uppercase a part of a string using preg_replace(http://www.php.net/preg_replace). Erwin

« previous php.general (#121824) next »