Return to Snippet

Revision: 38155
at December 27, 2010 13:58 by uudens


Initial Code
public static function getFilenameByURL( $url:String ) : String
{
	return $url.slice( Math.max( $url.lastIndexOf('/'), $url.lastIndexOf('\\') ) + 1 );
}

Initial URL

                                

Initial Description
Efficiently returns the filename by a given URL

Initial Title
Get filename from complete URL

Initial Tags
url

Initial Language
ActionScript 3