Anatoly Lubarsky Logo
MSSQL, .NET, Design. Life and Music

Javascript: Remove Upper Chars from String

Function in javascript that uses toUpperCase and removes all upper chars from the input string.


function fRemoveUpperChars(src)
{
    var dst = "";
    var c = "";

    for (var i = 0; i < src.length; i++)
    {
        c = src.charAt(i);
        if (c != c.toUpperCase())
        {
            dst += c;
        }
    }

    return dst;
}

Related Posts:

Tuesday, July 13, 2004 6:18 AM

If your feedback doesn't appear right away, please be patient as it may take a few minutes to publish.

Post a Comment

Protected by CAPTCHAEnter the code you see
Name (*)  
E-mail (*)  
Url
Remember

Comment (*)