Skip to content

Instantly share code, notes, and snippets.

@aaronpk
Created July 21, 2011 23:21
Show Gist options
  • Select an option

  • Save aaronpk/1098480 to your computer and use it in GitHub Desktop.

Select an option

Save aaronpk/1098480 to your computer and use it in GitHub Desktop.
make it better
/*
* This regex should look for regexes like s/a/b and capture both 'a' and 'b' separately.
* It's not very good yet. You can make it better if you want.
* Ready? go.
*/
/^s\/(.+)\/(.+)/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment