Re: Ereg capitalization

From: Date: Tue, 08 Apr 2003 13:21:14 +0000
Subject: Re: Ereg capitalization
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142855@lists.php.net to get a copy of this message
Try this out: $yourBeautifulNewTag = ereg_replace("<([a-zA-Z _\"=//]*)>",strtoupper("//1"),$sourceTag); It might need some fine tuning thoug (i wrote it in 10 secs... got so few time ;) ) Andrea Fastame Liam Gibbs wrote:
I'm not too great with Ereg, so I'm going to pass this along here. Is there a way I can make all of my tags uppercase using ereg? Well, I know there is, but how. I need to make it so it's something like "<[A-Z]+["]*> Something like that. The criteria is that all tags must be in uppercase, but everything inside the quotation marks is to be in lowercase. Any ideas?


« previous php.general (#142855) next »