logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Jake Howlett
    • Posted on Thu 11 Feb 2010

    From the code above (which btw is almost 10 years old!):

    dots = fileName.split(".")

    //get the part AFTER the LAST period.

    fileType = "." + dots[dots.length-1];

    It already caters for multiple dots :)

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: