Skip to content

Instantly share code, notes, and snippets.

View oburt's full-sized avatar

Orion Burt oburt

View GitHub Profile

Keybase proof

I hereby claim:

  • I am oburt on github.
  • I am oburt (https://keybase.io/oburt) on keybase.
  • I have a public key ASBcqzaFyjF4Ar_scEr7PN7XttjS1l5ETdUMWVzf_iKtXwo

To claim this, I am signing this object:

@oburt
oburt / regex_gfycat
Last active September 4, 2017 18:20
Regex for embeds
var re = /(?:http:|https:|)(?:\/\/|)(?:gfycat\.com\/(?:\w*\/)*)(\w+$)/gi;
var matches = re.exec( 'http://gfycat.com/GroundedMinorAcornbarnacle' );
matches = [
"http://gfycat.com/GroundedMinorAcornbarnacle",
"GroundedMinorAcornbarnacle"
];