Skip to content

Instantly share code, notes, and snippets.

@wilfriedE
Last active August 29, 2015 14:04
Show Gist options
  • Save wilfriedE/933e6998b04f00d33bea to your computer and use it in GitHub Desktop.
Save wilfriedE/933e6998b04f00d33bea to your computer and use it in GitHub Desktop.
def subdomain(options={})
end
def string(options={})
end
def name(options={})
end
Strings default: (case insensitive), options: i => case sensitive
string #=> This returns regex for only string based (i.e String, example)
_string #=> This returns regex for strings including those with underscores
op_string #=> This returns regex for strings including all characters except space, tab or newline
______________________
Subdomains default: (case sensitive, lowecase), options: none
subdomain #=> This returns regex for only string based (i.e subdain, example)
options:
hex #=> This returns regex for subdomain with numbers included (i.e suBd0m1n)
num #=> This returns regex for subdomains with only numbers (This will overide and use numbers only subdomain)
uline #=> This returns regex for subdomains including underscores
dash #=> This returns regex for subdomains including dashs
op #=> This returns regex for subdomains including all options above except num
______________________
Names default: (case insensitive), options: i => case sensitive
name #=> This returns regex for only string based
options:
dash #=> This returns regex for only string based
uline #=>
______________________
Videos
http://en.wikipedia.org/wiki/Video_file_format
Other formats
http://en.wikipedia.org/wiki/List_of_file_formats
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment