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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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