PDA

Click to See Complete Forum and Search --> : How to unlimit characters entered in textbox?


denvercr
Jan 1st, 2007, 03:19 AM
Hi guys,

I have this textbox for email address, I used regular expression to filter the characters the way I want.. However I need to unlimit the characters for further entries of email addresses,.. How could I possibly solve this using RegularExpressionValidator's ValidationExpression property? thanks.. :)

jmcilhinney
Jan 1st, 2007, 06:00 PM
I would suggest that you require a semicolon as a separator. You can then split the TextBox contents on the semicolon character and then use your regex on each substring.

jmcilhinney
Jan 1st, 2007, 08:25 PM
Ah, I just read your post a little more carefully and realised that you're using an ASP.NET validator. My suggestion may well not be applicable in that case, although I'm not a Web developer so I don't know for sure. I'm guessing that you could edit your pattern to account for a delimiter like a semicolon but I don't know exactly how offhand as I'm certainly not a regex expert.

denvercr
Jan 1st, 2007, 08:55 PM
hi hmcilhinney,

Thank you so much, you have a point there. I will look for a solution based on your suggestion. I will let you know once I solved it. =) happy new year to you!