Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
1.00/5 (6 votes)
See more:
code for find match like c,f,h in a,c,b,f,h,s in c# code
Posted
Updated 7-Dec-13 14:38pm
v5
Comments
BillWoodruff 7-Dec-13 11:36am    
If I were a psychic, I would know what you need, but, alas, I'm not, and, unless OriginalGriff is in trance, you may need to wait.

But ... in the meantime ... why don't you describe in more detail exactly what you want to do, and what a "match" means.

Is it a match if one letter appears in the string-to-be-searched, but others do not ?
[no name] 21-Mar-14 18:42pm    
I did a little looks back at some of the comments and responses. I have to double up laughing, your comment was _very_ excellent;) ...sorry for n^my english.
Kind regards, Bruno
[no name] 7-Dec-13 11:42am    
Sounds like "theory of sets", very nice field.

But as BillWoodruff wrote (I mean to interpret), you are a "little bit" unspecific

Maybe this helps to ask the question a little bit more precise:
http://en.wikipedia.org/wiki/Set_theory
Please add more information. It is not understood.
Richard MacCutchan 7-Dec-13 12:59pm    
What you really need, is to llearn how to do your own work, rather than demanding solutions from other people.

1 solution

Maybe a little bit abstract....

A ∩ B:= {x | x ∊ A and x ∊ B}
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 7-Dec-13 16:55pm    
My hands are scratching to up-vote this answer, but sorry, I just cannot.

This is not an answer, by one simple reason: only a question can be answered, but this is not a question, but a pure gibberish of an illiterate mathematically dyslexic person; this "match" does have any certain exact meaning; and a single example cannot be considered as a specification of anything. Formally speaking, there is nothing to answer to. Also, this line is simply a definition of conjunction, nothing else; even though it actually could be used as an idea of implementation. With the nearly the same probability of success, you could have said: "A hint: act by definition".

(By the way, I fixed your text, because you picked up a wrong Unicode code point for "a member of" sign.)
Respect,
—SA
[no name] 8-Dec-13 6:15am    
I know this is not an answer, it's more a hint for OP. I think he will not recognize the defintion, same as I did not recognize the question.

Thank you for correcting the wrong symbol.

And sorry that I wrote this as an answer and not as a comment.
Sergey Alexandrovich Kryukov 8-Dec-13 12:27pm    
You are welcome. I understand that this is a hint, as you can see in my comment above. And you did not do anything wrong, I think, no need to be sorry. This is me who is sorry about not up-voting it.
Thank you for understanding.
—SA
[no name] 8-Dec-13 12:55pm    
Everything ok and thanks for your forbearance (hope this is the right word) with a newbie. By the way Epsilon was the nearest looking symbol I found "under pressure" :) wiki has this definition only as picture.grrrr :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900