Skip to content

Instantly share code, notes, and snippets.

@hometoast
Created July 6, 2012 18:31
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 hometoast/3061864 to your computer and use it in GitHub Desktop.
Save hometoast/3061864 to your computer and use it in GitHub Desktop.
^[a-zA-Z0-9 _+/()\-\\]+$
Assert position at the beginning of the string «^»
Match a single character present in the list below «[a-zA-Z0-9 _+/()\-\\]+»
Between one and unlimited times, as many times as possible, giving back as needed (greedy) «+»
A character in the range between “a” and “z” «a-z»
A character in the range between “A” and “Z” «A-Z»
A character in the range between “0” and “9” «0-9»
One of the characters “ _+/()” « _+/()»
A - character «\-»
A \ character «\\»
Assert position at the end of the string (or before the line break at the end of the string, if any) «$»
Created with RegexBuddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment