|
-
Jan 24th, 2003, 06:43 AM
#1
regular expressions in javascript
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
Everything that has a computer in will fail. Everything in your life, from a watch to a car to, you know, a radio, to an iPhone, it will fail if it has a computer in it. They should kill the people who made those things.- 'Woz'
save a blobFileStreamDataTable To Text Filemy blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|