Wednesday, March 28, 2012
string.indexof case insensitive
To my experience, the string.indexof function is case sensitive. I need it
to be case insensitive, how should I achieve this?
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.comUse toLower() on all strings concerned.
"Guoqi Zheng" <no@.sorry.nl> wrote in message
news:ezCrd2YZEHA.524@.TK2MSFTNGP09.phx.gbl...
> Sir,
> To my experience, the string.indexof function is case sensitive. I need it
> to be case insensitive, how should I achieve this?
> --
> Kind regards
> Guoqi Zheng
> guoqi AT meetholland dot com
> Http://www.meetholland.com
>
>
Have you tried looking into IndexOfAny and passing both the upper case and
lower case character?
Hope this helps.
"Guoqi Zheng" <no@.sorry.nl> wrote in message
news:ezCrd2YZEHA.524@.TK2MSFTNGP09.phx.gbl...
> Sir,
> To my experience, the string.indexof function is case sensitive. I need it
> to be case insensitive, how should I achieve this?
> --
> Kind regards
> Guoqi Zheng
> guoqi AT meetholland dot com
> Http://www.meetholland.com
>
>
wait!.. User string.ToUpper() instead...
Just kidding!.
Dale
"Josh" <someone@.microsoft.com> wrote in message
news:e4vyMpZZEHA.4032@.TK2MSFTNGP11.phx.gbl...
> Use toLower() on all strings concerned.
> "Guoqi Zheng" <no@.sorry.nl> wrote in message
> news:ezCrd2YZEHA.524@.TK2MSFTNGP09.phx.gbl...
it
>
string.indexof case insensitive
To my experience, the string.indexof function is case sensitive. I need it
to be case insensitive, how should I achieve this?
--
Kind regards
Guoqi Zheng
guoqi AT meetholland dot com
Http://www.meetholland.comUse toLower() on all strings concerned.
"Guoqi Zheng" <no@.sorry.nl> wrote in message
news:ezCrd2YZEHA.524@.TK2MSFTNGP09.phx.gbl...
> Sir,
> To my experience, the string.indexof function is case sensitive. I need it
> to be case insensitive, how should I achieve this?
> --
> Kind regards
> Guoqi Zheng
> guoqi AT meetholland dot com
> Http://www.meetholland.com
Have you tried looking into IndexOfAny and passing both the upper case and
lower case character?
Hope this helps.
"Guoqi Zheng" <no@.sorry.nl> wrote in message
news:ezCrd2YZEHA.524@.TK2MSFTNGP09.phx.gbl...
> Sir,
> To my experience, the string.indexof function is case sensitive. I need it
> to be case insensitive, how should I achieve this?
> --
> Kind regards
> Guoqi Zheng
> guoqi AT meetholland dot com
> Http://www.meetholland.com
wait!.. User string.ToUpper() instead...
Just kidding!.
Dale
"Josh" <someone@.microsoft.com> wrote in message
news:e4vyMpZZEHA.4032@.TK2MSFTNGP11.phx.gbl...
> Use toLower() on all strings concerned.
> "Guoqi Zheng" <no@.sorry.nl> wrote in message
> news:ezCrd2YZEHA.524@.TK2MSFTNGP09.phx.gbl...
> > Sir,
> > To my experience, the string.indexof function is case sensitive. I need
it
> > to be case insensitive, how should I achieve this?
> > --
> > Kind regards
> > Guoqi Zheng
> > guoqi AT meetholland dot com
> > Http://www.meetholland.com
Saturday, March 24, 2012
Stripping the format of files.
Hi Guys,
I am fairly new to asp.net but am embarking on a project based on asp.net I am wondering if anyone has any experience or knowledge on how to strip the formatting of different documents? Maybe for a start, how do you strip the formatting of styles and stuff in MS Words to just purely text?
Regards,
Raymond
Hi,
if you mean that you just want to get the text itself and not the colors, ... you can copy paste it into notepad and from notepad copy paste to somewhere else.
Grz, Kris.
Hi Kris,
Thanks for your input. Actually I am looking more at the coding level because I need to strip the formatting of the file automatically before I can do further comparing of the contents in string or text format.
Regards,
Raymond
Is there anyone with the relevant experience who can share their knowledge?
Thanks!
Raymond