Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
#([a-zA-Z0-9-_]+)$
/
mg

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 - 8 years ago