Hi Thor,
Yes, you are right about that :)
Sorry, I did not saw it on your example, but if you get really complex then
you will have to take into account things like a tab ( \b ) so the
"normalization" can become quite complex ;)
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Thor W Hammer" <thorwhammer - NO @ SPAM - hotmail.com> wrote in message
news:3f*********************@read.news.no.uu.net.. .
I don't think it will change multiple white-spaces between words to single
white-spaces.
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:OL*************@TK2MSFTNGP11.phx.gbl... Hi Thor,
str.Trim().Replace("\n", " " );
will do the trick
Cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Thor W Hammer" <thorwhammer - NO @ SPAM - hotmail.com> wrote in message
news:3f*********************@read.news.no.uu.net.. . Smart algorithm for normalizing strings anyone?
Example:
If the original string looks like this:
"the brown
fox "
I want it end up like this:
"the brown fox"
Thanx in advance