RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Valid Folder Name
Expression
^[^\\/:*?""<>|.][^\\/:*?""<>|]*(?<!\.)(^[^\\/:*?""<>|]|$)|^$
Description
Regex for valid folder name. 1. Do not allow \ / : * ? " < > | any where in the language (folder) name. 2. Do not allow . at beginning or end of text. '.' can present in middle of text.
Matches
ValidFolder.Name|Folder!@#$%^&()|New Folder
Non-Matches
InvalidFolderName>|InvalidFolder.|Invalid<>Folder
Author Rating: The rating for this expression. Daniel Foo
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials