How to unlimit characters entered in textbox?
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.. :)
Re: How to unlimit characters entered in textbox?
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.
Re: How to unlimit characters entered in textbox?
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.
Re: How to unlimit characters entered in textbox?
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!