abhijit
Jan 24th, 2003, 05:43 AM
Hi,
I have a simple doubt in client side javascript.
I have a string "ASHDHSJDHASLJDMICROADHHASJD.TIF"
I wish to find out if the last four characters in this string
are ".TIF" This could be in any case (upper case, lower case, mixed case)
If the letters are present, I want to alert("TRUE) else alert("FALSE");
How do I use a regular expression for this particular case?
Cheers!
Abhijit
I have a simple doubt in client side javascript.
I have a string "ASHDHSJDHASLJDMICROADHHASJD.TIF"
I wish to find out if the last four characters in this string
are ".TIF" This could be in any case (upper case, lower case, mixed case)
If the letters are present, I want to alert("TRUE) else alert("FALSE");
How do I use a regular expression for this particular case?
Cheers!
Abhijit