• Home
  • About
    • BI, Workflow Automation, and App Development
    • Login
  • Search
dForge.net
Soguecode.ioTwitterGitHubCodepen
 
Skip to content
  • Home
  • About
    • BI, Workflow Automation, and App Development
    • Login
  • Search
Home Posts tagged "regex"

Tag: regex

Development

Javascript and Regex: Removing Trailing # and / From the URL

By Ron S. March 12, 2014 February 11, 2017  javascript, regex 0

Need to remove the trailing # or / or both from the end of a URL? Try using the following Regex: var url = location.href.replace(/(\/#|\/|#)$/, ”); Note that it’s best to leave a trailing slash in your URLs but in this case, I was comparing the location.href to a list …

Continue reading"Javascript and Regex: Removing Trailing # and / From the URL"
Back to Top
@ 2017 Soguecode.io, LLC.
Powered by Fluida & WordPress.