Skip to content

Instantly share code, notes, and snippets.

@Hanmac
Forked from bricker/regex.rb
Last active December 18, 2015 03:19
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 Hanmac/5716969 to your computer and use it in GitHub Desktop.
Save Hanmac/5716969 to your computer and use it in GitHub Desktop.
m = query.query_url.match(Regexp.union(
/form_code=(?<id>[a-zA-Z0-9]+)/,
/form\/.+?\/(?<id>[a-zA-Z0-9]+)/,
/iframe\/(?<id>[a-zA-Z0-9]+)/))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment