Regex To Check If Is A Valid Folder Name

Category: URI

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

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

Matches:

  • regex
  • regexpattern

Non-matches:

  • /\regex

See Also:

Rate This Regex
Sending
User Review
0 (0 votes)

Expression Flags

Flags Description
i Ignore case sensitive.
g Allows global search.
m Allows multiline search.
Category: URI