Re: [PHP] Making string upper/lowercase with regex?

2002-10-29 Thread Erwin
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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Chris Shiflett
Why must you use ereg_replace?

Does your question mean that you, for whatever reason, cannot use 
strtoupper() instead?

Leif K-Brooks wrote:

I need a way to make a string be replaced with its uppercase version 
using ereg_replace.  Any ideas?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Making string upper/lowercase with regex?

2002-10-28 Thread Leif K-Brooks
I don't want the entire string upercase, just part of it as defined by a 
regex.

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 need a way to make a string be replaced with its uppercase version 
using ereg_replace.  Any ideas?






--
The above message is encrypted with double rot13 encoding.  Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php