Skip to content

Instantly share code, notes, and snippets.

@preslavrachev
Created July 19, 2012 10:01
Show Gist options
  • Save preslavrachev/3142823 to your computer and use it in GitHub Desktop.
Save preslavrachev/3142823 to your computer and use it in GitHub Desktop.
Matching multiple hashtags in javascript
var c = "it ws a #nice and #sunny day in Berlin";
c.match(/\B#\w*[a-zA-Z]\w*/g); //should return #nice and #sunny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment