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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[^\\\/\?\*\"\'\>\<\:\|]*$
Description
Validation of a Folder Name. Excludes all forbidden characters
Matches
321321321 dasds
Non-Matches
/\3fsdfsd
Author Rating: The rating for this expression. Nikolay Yordanov
Source I wrote IT
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

Title: fail with "yo"
Name: uhm
Date: 8/6/2016 4:27:33 PM
Comment:
This regex fails for folders simply named "yo"


Title: .net
Name: Nate
Date: 4/18/2008 11:17:47 AM
Comment:
Remember, when you're putting regex strings into .net, you can save a lot of headache if you make it a habit to do @"^[^\\/?*\"\'><:|]*$" Note on the @ symbol, meaning the string is literal, and it won't try to look at any code contained inside when its being declared.


Title: .NET
Name: jason
Date: 5/3/2007 5:46:48 PM
Comment:
in .net the pattern translates to: string strRegex = "^[^\\/?*\"\'><:|]*$"; Regex re = new Regex(strRegex);


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