Skip to content

Instantly share code, notes, and snippets.

@nickisnoble
Last active August 29, 2015 14:09
Show Gist options
  • Save nickisnoble/f2b20db91fb8c7a12e7b to your computer and use it in GitHub Desktop.
Save nickisnoble/f2b20db91fb8c7a12e7b to your computer and use it in GitHub Desktop.
Matches Codepen user profiles, blogs, blog entries, and most pens.
/^(https?:\/\/)?((w{3}\.)?)codepen\.io\/[a-z0-9_\-]+(\/(pen|blog|full|debug|details|pres|live|professor|collab))?(\/([a-z0-9_\-]+)(\?editors\=[0-9]+)?)?\/?$/
@nickisnoble
Copy link
Author

One thing I wasn't sure of: does Codepen allow - (dashes) in usernames? Or other special characters?

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