try
"^[\w\s\n\t]+$"
Main Topics
Browse All TopicsHi,
Currently i have:
Regex.Match(str, "^[\w\s]+$").Success
But if the user hits enter on the multiline textbox
it causes failure to regex
How should i change
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
you may use replace function
str = Replace(str,vbCrlf," ")
what do you mean by dissallowing \n\t? (remove them?)
do not the syntax in asp.net
it is in asp
it finds \n\r\t and replaces with white space
Set objRegExpr = New regexp
objRegExpr.Pattern = "[\n\t\r]"
objRegExpr.Global = true
objRegExpr.IgnoreCase = true
newStr = objRegExpr.Replace(str," ")
Set objRegExpr = Nothing
Response.Write(newStr)
Business Accounts
Answer for Membership
by: sammy1971Posted on 2006-05-23 at 21:03:06ID: 16748345
Jedistar, orkspaces/ Workspace. aspx? id=9e 33c395-827 5-4906-8a0 9-0bff41fd c1d6
I am not good in regex myself but there is a tool I use for all my asp.net apps
its called regex builder and you can download it and use it for free from
http://www.gotdotnet.com/W
Good luck