Skip to content

Instantly share code, notes, and snippets.

@devinrhode2
Forked from 1Marc/gist:11277624
Created April 25, 2014 04:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devinrhode2/11277918 to your computer and use it in GitHub Desktop.
Save devinrhode2/11277918 to your computer and use it in GitHub Desktop.

Keywords here are "SVG" and "CSS3"

The regex should find only words found in the text or in individual keywords in a URL seperated by dashes. It should NOT match any keywords located in shortned URL hashes.

Should match:

"I love this thing about SVG. http://foo.com/article" "This is awesome http://super-awesome-svg.com" "I <3 this css3 button thing http://codepen.com/abcdefg"

Should NOT match:

"This is a thing we are testing. It should not match this http://t.co/ifesVgief" "Boogy buggy booger. It should not match this http://t.co/ewfijCSs3few"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment