Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old December 3rd, 2004, 04:42 PM
metridevkk metridevkk is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 3 metridevkk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ValidationExpression

Hi,

I have attached a RegularExpressionValidator Control to a textbox to accept numeric values in the format:

###*#####*##

I have entered the following regex in the ValidationExpression:

[0-9]{3}\*[0-9]{5}\*[0-9]{2}
or
[0-9]{3}[\*][0-9]{5}[\*][0-9]{2}

but validator fails to validate an input such as:111*11111*11

Could someone please guide me on what is wrong in the regular expression that i have specified?

Thanks.

Reply With Quote
  #2  
Old December 5th, 2004, 01:07 PM
JamesLe JamesLe is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Oakland, CA, USA
Posts: 131 JamesLe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m
Reputation Power: 5
Hello metridevkk,

How about this: [0-9]{3}[*][0-9]{5}[*][0-9]{2}

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > ValidationExpression


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT