>From your previous message, it sounded like you want to get everything after
the last / in the URL, is that right? You could do it like this:

  var file = url.match('/([^/]+)$')[1];

A test case:

  var url = 'http://www.region3dfg.org/lands/1802-2005-020-3';
  var file = url.match('/([^/]+)$')[1];
  alert( file );  // alerts "1802-2005-020-3"

-Mike

> From: Region 3 DFG
> anybody have a slim piece of code to parse out the end of the URL?
> when i find one ill post it here


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to