By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,821 Members | 1,058 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,821 IT Pros & Developers. It's quick & easy.

Good way for week strings compare

P: n/a
Dear Sirs,
is there a standard way for week strings compare?
I need to disregard spaces.
Of course I can build this functionality myself, but may be there is
something already there?
Thanks,
Boni
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies

P: n/a
"Boni" <oilia@nospam> schrieb:
is there a standard way for week strings compare?


What is a week string? Could you show some samples?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2

P: n/a
Sorry for misunderstanding. I meant week compare.
Example:
"a bbb ccc"
"a bbb ccc"
I just want to have compare without regarding to spaces.
So far I just did a regex to replace "\s+" with one space and then compare.
But may be there is already something in the language?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> schrieb im Newsbeitrag
news:eV**************@TK2MSFTNGP15.phx.gbl...
"Boni" <oilia@nospam> schrieb:
is there a standard way for week strings compare?


What is a week string? Could you show some samples?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

P: n/a
Boni,
Do you mean weak (as in not strong) string compares or week (as in 7 days)
string compares? ;-)

Other then removing the spaces as you suggest in your other message, I don't
know of any "weak" string compares in the Framework (this is not to say
there is not any).

Hope this helps
Jay

"Boni" <oilia@nospam> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
| Dear Sirs,
| is there a standard way for week strings compare?
| I need to disregard spaces.
| Of course I can build this functionality myself, but may be there is
| something already there?
| Thanks,
| Boni
|
|
Nov 21 '05 #4

P: n/a
Do you mean weak (as in not strong) string compares or week (as in 7 days)
string compares? ;-)

Sorry.I meant weak.Thank you.
Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.