Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-06-13 13:38
Flavor·ECMAScript (JavaScript)

/
#([a-zA-Z0-9-_]+)$
/
mg
Open regex in editor

Description

This ER is nice to get a hash from URL, I used today to pass the name of an bootstrap TAB and set the focus when the page loads.

I did it using the Replace of JavaScript.

Submitted by Marcelo Sabadini