Hi Group,
Is there any method in C# search to ingnore the different between some
data which are "same in concept" but different in "the way are stored" ?
Let's say I'm doing a search against an xml data item like :
"What is your name?" but it's saved as "what is your name?"
Any idea?
Thanks in advance
Newbie 7 6681
Have you checked out the Regex class yet? It's the DotNet version of
regular expressions. They handle situations such as what you want to do.
Chris R.
"C# newbie" <rs****@otxresearch.com> wrote in message
news:#s**************@TK2MSFTNGP11.phx.gbl... Hi Group,
Is there any method in C# search to ingnore the different between
some data which are "same in concept" but different in "the way are stored" ? Let's say I'm doing a search against an xml data item like :
"What is your name?" but it's saved as "what is your name?"
Any idea?
Thanks in advance Newbie
> Is there any method in C# search to ignore the different between some data which are "same in concept" but different in "the way are stored" ?
When you say "data", how generically are you speaking? Do you really
only care about strings, or do you want a more general answer.
To implement "same in concept" between two instances of your own
classes, You've want to implement the CompareTo method for that class.
--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
"C# newbie" <rs****@otxresearch.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
> Is there any method in C# search to ignore the different between some data which are "same in concept" but different in "the way are stored" ?
When you say "data", how generically are you speaking? Do you really
only care about strings, or do you want a more general answer.
To implement "same in concept" between two instances of your own
classes, You've want to implement the CompareTo method for that class.
--
Truth,
James Curran
Home: www.noveltheory.com Work: www.njtheater.com
Blog: www.honestillusion.com Day Job: www.partsearch.com
(note new day job!)
"C# newbie" <rs****@otxresearch.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Chris,
Is there any way to let me combine the Regex with XML ?
Thanks
"Chris R" <so*****@hotmail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl... Have you checked out the Regex class yet? It's the DotNet version of regular expressions. They handle situations such as what you want to do.
Chris R.
"C# newbie" <rs****@otxresearch.com> wrote in message news:#s**************@TK2MSFTNGP11.phx.gbl... Hi Group,
Is there any method in C# search to ingnore the different between some data which are "same in concept" but different in "the way are stored" ? Let's say I'm doing a search against an xml data item like :
"What is your name?" but it's saved as "what is your name?"
Any idea?
Thanks in advance Newbie
Hi Chris,
Is there any way to let me combine the Regex with XML ?
Thanks
"Chris R" <so*****@hotmail.com> wrote in message
news:OZ**************@tk2msftngp13.phx.gbl... Have you checked out the Regex class yet? It's the DotNet version of regular expressions. They handle situations such as what you want to do.
Chris R.
"C# newbie" <rs****@otxresearch.com> wrote in message news:#s**************@TK2MSFTNGP11.phx.gbl... Hi Group,
Is there any method in C# search to ingnore the different between some data which are "same in concept" but different in "the way are stored" ? Let's say I'm doing a search against an xml data item like :
"What is your name?" but it's saved as "what is your name?"
Any idea?
Thanks in advance Newbie
no, i'm talking about strings.
"James Curran" <Ja*********@mvps.org> wrote in message
news:ef**************@TK2MSFTNGP11.phx.gbl... Is there any method in C# search to ignore the different between
some data which are "same in concept" but different in "the way are stored" ?
When you say "data", how generically are you speaking? Do you really only care about strings, or do you want a more general answer.
To implement "same in concept" between two instances of your own classes, You've want to implement the CompareTo method for that class.
-- Truth, James Curran Home: www.noveltheory.com Work: www.njtheater.com Blog: www.honestillusion.com Day Job: www.partsearch.com (note new day job!) "C# newbie" <rs****@otxresearch.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
no, i'm talking about strings.
"James Curran" <Ja*********@mvps.org> wrote in message
news:ef**************@TK2MSFTNGP11.phx.gbl... Is there any method in C# search to ignore the different between
some data which are "same in concept" but different in "the way are stored" ?
When you say "data", how generically are you speaking? Do you really only care about strings, or do you want a more general answer.
To implement "same in concept" between two instances of your own classes, You've want to implement the CompareTo method for that class.
-- Truth, James Curran Home: www.noveltheory.com Work: www.njtheater.com Blog: www.honestillusion.com Day Job: www.partsearch.com (note new day job!) "C# newbie" <rs****@otxresearch.com> wrote in message news:%2****************@TK2MSFTNGP11.phx.gbl...
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Phil Powell |
last post by:
/*--------------------------------------------------------------------------------------------------------------------------------
Parameters:
$formField1: The name of the first array
$formField2:...
|
by: Sharon |
last post by:
hi,
I want to compare character, if the string contains character "-" then it
will print Hello on the screen
however, neither method (1) nor method (2) work in the code below:
so what the correct...
|
by: David zhu |
last post by:
I've got different result when comparing two strings
using "==" and string.Compare().
The two strings seems to have same value "1202002" in
the quick watch, and both have the same length 7 which I...
|
by: bengamin |
last post by:
Hi,
I declare two ArrayList variables.How can I compare if the two ArrayList are
Value Equal.
Thanks!
Ben
|
by: Russ Green |
last post by:
How does this:
public TimeSpan Timeout
{
get { return timeout; }
set
{
timeout = value;
if(timeout < licenseTimeout)
licenseTimeout = timeout;
}
|
by: Nikolay Petrov |
last post by:
I need to compare to byte values, but one of them may differ from the
other by let's say 5%, and they still should count as same.
I need a fast method, because i am going to compare a set of about...
|
by: Benny Ng |
last post by:
Dear all,
The following is the source. The password is encrypted and saved into the
Binary in SQL2K.
Now I want to create a new page to compare the existed password and the
password that in the...
|
by: Al |
last post by:
I'd like to know if there were any changes in the DataSet which was
populated by reading XML file. 6 DataTables with data or just structure with
no data inside of it.
I think about this scenario:...
|
by: titan nyquist |
last post by:
I wish to compare two structs via == but it does not compile. I can
overload and create my own == but am I missing something that c#
already has implemented?
~titan
|
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= |
last post by:
Hi
I have a Container that is an an Array List of Class
Each ArrayList element can be the class or a another ArrayList of Class
So there the ArrayList could look like
Element 1 - Class...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |