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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[a-zA-Z_]{1}[a-zA-Z0-9_@$#]*$
Description
This Regex matches valid SQL identifiers, including names for Stored Procedures and the like. Note that local variables/parameters (which begin with an "@") will not match this Regex, nor will temporary objects (beginning with a "#"), or global temporary objects (beginning with "##"). All other valid identifiers/variables/table names/stored procedure names/columns etc., will match. Please let me know if you find this useful or have any complaints - [email protected].
Matches
upApplicationReadContacts | _Application_ReadContacts | a_45$#z
Non-Matches
upApplication ReadContacts | $Application_ReadContacts | a_45%$#z
Author Rating: The rating for this expression. Geoff Williams
Source http://www.primalblaze.com
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: Super!
Name: Liesha
Date: 3/18/2008 9:22:25 AM
Comment:
A little customisation and viola!!


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