PDA

View Full Version : Regular Expression for lower case to upper case


gamerzhut
12-05-2012, 07:19 PM
Hello, i want a custom profile field to be upper case.

So, when a user inputs his name as Sarah it needs to be converted to SARAH.

What is the regular expression for it??

kh99
12-05-2012, 11:20 PM
I believe the regular expression field in the profile field manager only lets you enter an expression that has to match. I don't think there's any way to create an expression that will change the value. But if you write a plugin you can use php functions to do it, like strtoupper() (http://us2.php.net/manual/en/function.strtoupper.php).