Re: Search a String
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
On Oct 2, 2:26 pm, S <scottremi...@xxxxxxxxx> wrote:
Any idea on how I would be able to do a search within C# that does
ranges or words
For example
I want to search for Chicken in the string
string s1 = "This is Great Chicken";
string s2 = "Chicken";
return s1.IndexOf(s2) >= 0
The trick is how would I search for: Person doing the search
misspelled the word Chickin (Happens all the time);
string s1 = "This is Great Chicken";
string s2 = "Chickin";
return ???
or
Worst yet
string s1 = "This is Great Chickin";
string s2 = "Chicken";
Person enter the search phrase misspelled the word Chicken;
string s1 = "This is Great Chickin";
string s2 = "Chicken";
Hi,
I do not how to do it in code, I'm pretty sure that no version of the
framework provides such a feature.
In T-SQL you have this feature though take a look for SOUNDEX function
.
Relevant Pages
- Re: Search a String
... ranges or words ... The trick is how would I search for: ... misspelled the word Chickin; ... If you search something such as "Chickin" in a string which does not ... (microsoft.public.dotnet.languages.csharp) - Search a String
... ranges or words ... I want to search for Chicken in the string ... The trick is how would I search for: ... misspelled the word Chickin; ... (microsoft.public.dotnet.languages.csharp) - Re: Something like Visual Assist for Eclipse
... And as I said Eclipse has that, it's just not doing it automatically, you have to request it. ... perhaps Eclipse can offer this as a feature which can be turned off. ... Based on my experience, I'm guessing its suggestions are based on type checking (e.g. if you're typing in something which will be used as a parameter to a method which expects a string, the first few choices will be local variables and fields which are Strings, or methods which extend string), and most-recently-used. ... (comp.lang.java.programmer) - Re: Fortran Forum - Oh Boy
... Well first, if it's a bit string, it's a peculiar one. ... suggest it's an unsigned integer feature. ... that aren't consistent with it being a data type. ... And I want all uses of them, whether in arrays or derive types ... (comp.lang.fortran) - Re: [PHP] Closures in PHP
... of string escaping which produces awful hard to read code. ... spoken of as a ghost feature. ... on object references as well. ... being able to create anonymous functions on the fly would be a welcome ... (php.general) |
|