Regex To Check If Is A Valid Folder Name

A regular expression to check if is a valid folder name (no forbidden characters included).

/^[^\\\/\?\*\"\'\>\<\:\|]*$/

Matches:

  • regex
  • regexpattern

Non-matches:

  • /\regex

See Also: