Search:
Namespaces
Discussions
.NET v1.1
Feedback
RegExp
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngregexp' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Sathish
Hi All,
I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,
Sathish
Reply to this message...
Steven A Smith (VIP)
Sounds really close to
http://regexlib.com/
REDetails.aspx?regexp_id=31
also do a search for "password" at
http://regexlib.com/
Steve
Steven Smith
Click here to reveal e-mail address
President, ASPAlliance.com
http://aspalliance.com
The #1 ASP.NET Community
http://aspsmith.com
ASP.NET Training for ASP Developers
Learning ASP.NET? Get My Book: ASP.NET By Example
http://www.amazon.com/exec/obidos/ASIN/0789725622/stevenatorasp/
----- Original Message -----
From: Sathish
To: aspngregexp
Sent: Friday, January 11, 2002 1:38 PM
Subject: [aspngregexp] RegExp
Hi All,
I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,
Sathish
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Prasad, G. Lukas
Hi Satish,
I beleive the following code would work
^[\w,{,},(,),\[,\],&,+,\']+$
Try this out and let me know if this has got any problems
Regards,
Prasad. G.L.
-----Original Message-----
From: Sathish [mailto:
Click here to reveal e-mail address
]
Sent: Saturday, January 12, 2002 12:09 AM
To: aspngregexp
Subject: [aspngregexp] RegExp
Hi All,
I need to validated a textbox using the regularexpressionvalidtor
in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and
space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,
Sathish
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Mark Bruce
try
([a-zA-Z0-9'\[\]+& ])*
Sathish <
Click here to reveal e-mail address
> wrote: Hi All, I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,Sathish| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
Reply to this message...
Sathish
Hi Prasad,
I am currently using the following /[^a-zA-Z0-9'&() ]/ to validate my code, this works fine with ordinary HTML textbox, only when I try assign it to regularexpressionvalidator in asp.net and try to validate it for a textbox in datagrid it throws invalid chars, invariable of what value I pass.
Valid allowed chars being the following and they can be in any order and n number of occurance (no commas)
a-z
A-Z
0-9
single quotes
brackets
Plus sign
Dash
ampersand
space
Regards,
Sathish
----- Original Message -----
From: Prasad, G. Lukas
To: aspngregexp
Sent: Thursday, January 10, 2002 10:31 PM
Subject: [aspngregexp] RE: RegExp
Hi Satish,
I beleive the following code would work
^[\w,{,},(,),\[,\],&,+,\']+$
Try this out and let me know if this has got any problems
Regards,
Prasad. G.L.
-----Original Message-----
From: Sathish [mailto:
Click here to reveal e-mail address
]
Sent: Saturday, January 12, 2002 12:09 AM
To: aspngregexp
Subject: [aspngregexp] RegExp
Hi All,
I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,
Sathish
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Steven A Smith (VIP)
You're leaving out the / / prefix/suffix when you put it into your ValidationExpression right?
Steve
----- Original Message -----
From: Sathish
To: aspngregexp
Sent: Friday, January 11, 2002 3:19 PM
Subject: [aspngregexp] RE: RegExp
Hi Prasad,
I am currently using the following /[^a-zA-Z0-9'&() ]/ to validate my code, this works fine with ordinary HTML textbox, only when I try assign it to regularexpressionvalidator in asp.net and try to validate it for a textbox in datagrid it throws invalid chars, invariable of what value I pass.
Valid allowed chars being the following and they can be in any order and n number of occurance (no commas)
a-z
A-Z
0-9
single quotes
brackets
Plus sign
Dash
ampersand
space
Regards,
Sathish
----- Original Message -----
From: Prasad, G. Lukas
To: aspngregexp
Sent: Thursday, January 10, 2002 10:31 PM
Subject: [aspngregexp] RE: RegExp
Hi Satish,
I beleive the following code would work
^[\w,{,},(,),\[,\],&,+,\']+$
Try this out and let me know if this has got any problems
Regards,
Prasad. G.L.
-----Original Message-----
From: Sathish [mailto:
Click here to reveal e-mail address
]
Sent: Saturday, January 12, 2002 12:09 AM
To: aspngregexp
Subject: [aspngregexp] RegExp
Hi All,
I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,
Sathish
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
Reply to this message...
Mark Bruce
try this
^[a-zA-Z0-9\[\]+&' ]+$
hope this helps!
Sathish <
Click here to reveal e-mail address
> wrote: Hi Prasad, I am currently using the following /[^a-zA-Z0-9'&() ]/ to validate my code, this works fine with ordinary HTML textbox, only when I try assign it to regularexpressionvalidator in asp.net and try to validate it for a textbox in datagrid it throws invalid chars, invariable of what value I pass. Valid allowed chars being the following and they can be in any order and n number of occurance (no commas)a-z A-Z 0-9single quotesbracketsPlus signDashampersand space Regards,Sathish----- Original Message ----- From: Prasad, G. Lukas To: aspngregexp Sent: Thursday, January 10, 2002 10:31 PMSubject: [aspngregexp] RE: RegExp
Hi Satish, I beleive the following code would work ^[\w,{,},(,),\[,\],&,+,\']+$ Try this out and let me know if this has got any problems Regards,Prasad. G.L.-----Original Message-----
From: Sathish [mailto:
Click here to reveal e-mail address
]
Sent: Saturday, January 12, 2002 12:09 AM
To: aspngregexp
Subject: [aspngregexp] RegExp
Hi All, I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,Sathish| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
Reply to this message...
Mark Bruce
Have you guys tried my last reply?
it worked for me
Mark
Steven A Smith <
Click here to reveal e-mail address
> wrote: You're leaving out the / / prefix/suffix when you put it into your ValidationExpression right? Steve ----- Original Message ----- From: Sathish To: aspngregexp Sent: Friday, January 11, 2002 3:19 PMSubject: [aspngregexp] RE: RegExp
Hi Prasad, I am currently using the following /[^a-zA-Z0-9'&() ]/ to validate my code, this works fine with ordinary HTML textbox, only when I try assign it to regularexpressionvalidator in asp.net and try to validate it for a textbox in datagrid it throws invalid chars, invariable of what value I pass. Valid allowed chars being the following and they can be in any order and n number of occurance (no commas)a-z A-Z 0-9single quotesbracketsPlus signDashampersand space Regards,Sathish----- Original Message ----- From: Prasad, G. Lukas To: aspngregexp Sent: Thursday, January 10, 2002 10:31 PMSubject: [aspngregexp] RE: RegExp
Hi Satish, I beleive the following code would work ^[\w,{,},(,),\[,\],&,+,\']+$ Try this out and let me know if this has got any problems Regards,Prasad. G.L.-----Original Message-----
From: Sathish [mailto:
Click here to reveal e-mail address
]
Sent: Saturday, January 12, 2002 12:09 AM
To: aspngregexp
Subject: [aspngregexp] RegExp
Hi All, I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,Sathish| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
Reply to this message...
Mark Bruce
Have you guys tried my last reply?
it worked for me
Mark
Steven A Smith <
Click here to reveal e-mail address
> wrote: You're leaving out the / / prefix/suffix when you put it into your ValidationExpression right? Steve ----- Original Message ----- From: Sathish To: aspngregexp Sent: Friday, January 11, 2002 3:19 PMSubject: [aspngregexp] RE: RegExp
Hi Prasad, I am currently using the following /[^a-zA-Z0-9'&() ]/ to validate my code, this works fine with ordinary HTML textbox, only when I try assign it to regularexpressionvalidator in asp.net and try to validate it for a textbox in datagrid it throws invalid chars, invariable of what value I pass. Valid allowed chars being the following and they can be in any order and n number of occurance (no commas)a-z A-Z 0-9single quotesbracketsPlus signDashampersand space Regards,Sathish----- Original Message ----- From: Prasad, G. Lukas To: aspngregexp Sent: Thursday, January 10, 2002 10:31 PMSubject: [aspngregexp] RE: RegExp
Hi Satish, I beleive the following code would work ^[\w,{,},(,),\[,\],&,+,\']+$ Try this out and let me know if this has got any problems Regards,Prasad. G.L.-----Original Message-----
From: Sathish [mailto:
Click here to reveal e-mail address
]
Sent: Saturday, January 12, 2002 12:09 AM
To: aspngregexp
Subject: [aspngregexp] RegExp
Hi All, I need to validated a textbox using the regularexpressionvalidtor in asp.net, following are the valid allowed
characters (a-z, A-Z, 0-9, single quotes, brackets, + , ampersand and space). Can anyone suggest a RegExp code to validate the above requirement.
Regards,Sathish| [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives | [aspngregexp] member
Click here to reveal e-mail address
= YOUR ID |
http://www.asplists.com/asplists/aspngregexp.asp
= JOIN/QUIT |
http://www.asplists.com/search
= SEARCH Archives
---------------------------------
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail.
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com