Skip to content

Instantly share code, notes, and snippets.

@imchao9
Created June 20, 2016 08:56
Show Gist options
  • Select an option

  • Save imchao9/84e3817b4e48b5962032f372689a7d86 to your computer and use it in GitHub Desktop.

Select an option

Save imchao9/84e3817b4e48b5962032f372689a7d86 to your computer and use it in GitHub Desktop.
获取url的文件名
var RegUrl = new RegExp();
RegUrl.compile("^[A-Za-z]+://[A-Za-z0-9-_]+\\.[A-Za-z0-9-_%&\?\/.=]+$");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment