troubleshooting Question

Keep first 150 chars of string

Avatar of dba123
dba123 asked on
C#
7 Comments1 Solution196 ViewsLast Modified:
If I have an incoming string.  How can I use regex or something else to take that string, and keep only the first 150 chars and also exclude any HTML, line-feed, carriage returns, or tabs?

I am working on cleaning some of our descriptons and not sure the best methods to do this and how I'd go about it.

example incoming string:

In any organization, recognizing and understanding the nature and impact of toxic behaviors can provide for the ability to manage the adverse environment and mitigate the potential risks that we often face in the workplace. In Coping with Toxic Managers , Roy Lubit skillfully tackles this complicated topic by presenting the psychological aspects of toxic behaviors in a manner that is understandable and embraceable. This is not one of those 'flavor of the month' pop-psychology books-;it's truly about the science of how and why toxic people think, act, and react. Read this book and you may start looking at the people in your organization quite differently.<br><br><b>You can also purchase the individual chapters:</b><br><a href="/Product/ProductInfo.aspx?ProductID=107334">Chapter 1: Emotional Intelligence Approach to Coping with Toxic Managers and Subordinates</a><br><a href="/Product/ProductInfo.aspx?ProductID=107335">Chapter 2: Narcissistic Managers</a><br>’
ASKER CERTIFIED SOLUTION
Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 1 Answer and 7 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 1 Answer and 7 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004