Regular expression Validator against multiline textbox carriage return issue

I was trying to validate a multipline asp text box that can have a maximum of 150 word characters but any number of white space, carriage returns or tabs and special characters. I tried several regex but all were failing when there was a carriage return(Newline / Enterkey ) on the multiline textbox.

Then I found this expression which validated the newlines in the multiline textbox:

"[sS]{0,150}" .

 

The basics!!  Try this out , this works!!

43 comments

It doesn work, try this write couple of charaters then press enter again write couple of character press enter twice or thrice and it fails, my limit is 500

I have tried this just now and it works fine for 500 too. you can try any number of characters. I have mailed you the source code too.

I like how you write.Are you interesting in a part time writer job?

I like what I see. keep it going

I guess there’s always an easier way …

Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that: Thanks for lunch!

All my life I’ve wanted to be somebody. But I see now I should have been more specific.

Depression, ulcerative colitis, IBD…what else will this do to people? LET’S GET THIS FIXED!

This is nice post,thanks for your information.

Hi. I just noticed that your site looks like it has a few code problems at the very top of your website’s page. Is it an older version of BE? I’m not sure if everybody is getting this same bugginess when browsing your blog? I am employing a totally different browser than most people, referred to as Opera, so that is what might be causing it? I just wanted to make sure you knew. Thank you for posting some great postings and I will try to return back with a completely different browser to check things out!

I actually love shoes, I’ve no idea just what my issue is LOL. I simply love being able to mix match outfits which coordinate from head to toe, specifically with shoes getting a big focal point.

Do you like running Blog Engine? If I might –perhaps you should consider adding a few videos. I dont mean to disrespect what you’ve said; its very enlightening, for sure. However, I think would respond to it more positively if you could be something flashy to your site. Keep it up, but put a little more into it next time.

Fine information, many thanks to the author. It is puzzling to me now, but in general, the usefulness and significance is overwhelming. Very much thanks again and good luck!

Sex harassment lawyers California Hey – nice website, rightful superficial around few blogs, seems a pretty overnice document you are using. I’m currently using WordPress for a few of my sites but sensing to change one of them over to a structure same to yours as a experiment run. Anything in item you would urge roughly it?

There’s nothing wrong with buying yourself a gift each now and also again.

I’ve been looking for a similar to this post. Not only extensively but also detailly. We can learn a lot from the post. I recommend to you , you can come communication in here. Let us grow up together.On the other hand ,I know some websites content is very well.you can go and see.Such as
http://www.salebootsforcheap.us

Extremely inspiring. It’s amazing what can be done when we put our minds to it.

Hello Nishanth, I liked your article, how to subscribe to RSS?

Thanks for informative post. I am pleased sure this post has helped me save many hours of browsing other similar posts just to find what I was looking for. Just I want to say Thank you very much!

I just cant stop reading this. Its so cool, so full of information that I just didnt know. Im glad to see that people are actually writing about this issue in such a smart way, showing us all different sides to it. Youre a great blogger. Please keep it up. I cant wait to read whats next.

Took me time to go through all of the comments, but I actually enjoyed the post. It proved to become quite helpful to me and I am certain to all of the commenters right here! It’s always nice when you can not just be informed, but also entertained! I’m sure you had enjoyment writing this write-up.

Great article and post, we will submit your article to our social network and our twitter, thanks and please post our comment, as we will put a link as well on our blog to your article. Thanks Will

I don’t know if I am any smarter but I enjoyed reading your post – Thank You

I must say I’ve been searching for some good blog post covering topic . Searching in Google I found this blog post. After going over this post I’m really glad to say that I have finally found just what I was searching for. I will make sure to save this website and come back here on a constant basis. Thanks!

I can see that you are an expert in this area. I am starting a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.

Substantially, the post is really the sweetest on this precious topic. I suit in with your conclusions and also definitely will eagerly look forward to your coming updates. Simply just saying thanks will not simply just be enough, for the amazing lucidity in your writing. I will at once grab your rss feed to stay abreast of any updates. Genuine work and much success in your business efforts!

Resources similar to the 1 you talked about here will be really useful to myself! I will publish a hyperlink to this web page on my weblog. I am certain my site visitors will find that really helpful.

Thanks for posting this. i really had good time reading this.

Whoa. I had not thought about this that way. I’m bookmarking this to read your other stuff later. I have a few other sites to check out and found this while searching for some stuff for work.

Clufflinks can kick any outfit up a few notches. Cufflink Aficionado makes available designer mens cufflinks sets for the eager masses. No longer do cufflinks belong only on the wrists of the well-to-do or those who own homes in the Hamptons. If you want a fashionable and designer look without having to take out a second mortgage, then look no further.wedding cufflinks understands the diverse interests of the common man.

Hey check out my blog too. I hope i have some fun stuff too

Where can i find your rss? I cant find it

His hair is dark as the hyacinth-blossom, and his lips are red as the rose of his desire; but passion has made his lace like pale Ivory, and sorrow has set her seal upon his brow’ Bronze-limbed and well-knit, like a statue wrought by a Grecian, he stood on the sand with his back to the moon, and out of the foam came white arms that beckoned to him, and out of the waves rose dim forms that did him homage Then the Spring came, and all over the country there were little blossoms and little birds Therefore is it the god, and we worship it He would not have given his rose for all the pearls on the canopy, nor one white petal of his rose for the throne itself What he wanted was to see the Infanta before she went down to the pavilion, and to ask her to come away with him when he had finished his dance Flour is one thing

Make sure don’t limit yourself. Several men and women limit themselves to what they believe they are competent to do. Remember that you can go as far as your imagination lets you.

I have learn a variety of articles on this but very little with this current article about this topic. Can you touch upon the place you discovered you material?

our products will provide you a verry healthy body because our products is the best anti oxidant in the world so try our products http://suppernaturals.blogspot.com/ http://suppernaturals.blogspot.com/p/moringa-cur-plus.html/

Resources like the one you mentioned here will be very useful to me! I will post a link to this page on my blog. I am sure my visitors will find that very useful.

Thanks for the wonderful post. I will be sure to add your blog to my newsreader to keep up with your future posts. Being in the consulting business, it’s fun to view things from a competing viewpoint.

Microsoft’s new OS Windows 7 is a big improvement compared to Vista. It may be a little harder to use than Window’s XP, but, it is more stable especially if you are running multiple programs.

Leave a reply