Click here to Skip to main content
15,898,036 members
Home / Discussions / C#
   

C#

 
GeneralRe: Support multiple assembly versions Pin
mav.northwind9-Dec-07 19:07
mav.northwind9-Dec-07 19:07 
GeneralRe: Support multiple assembly versions Pin
Joseph LeBlanc9-Dec-07 19:11
Joseph LeBlanc9-Dec-07 19:11 
GeneralRe: Support multiple assembly versions Pin
mav.northwind9-Dec-07 19:35
mav.northwind9-Dec-07 19:35 
Generalstring matching(Please Help) Pin
mshahrouri9-Dec-07 1:27
mshahrouri9-Dec-07 1:27 
GeneralRe: string matching(Please Help) Pin
Xmen Real 9-Dec-07 2:03
professional Xmen Real 9-Dec-07 2:03 
GeneralRe: string matching(Please Help) Pin
Adeel Chaudhry9-Dec-07 5:11
Adeel Chaudhry9-Dec-07 5:11 
GeneralRe: string matching(Please Help) Pin
mshahrouri9-Dec-07 20:39
mshahrouri9-Dec-07 20:39 
GeneralRe: string matching(Please Help) [modified] Pin
Jimmanuel9-Dec-07 9:01
Jimmanuel9-Dec-07 9:01 
To match your first example you'd need to write a natural language parser which would be a ton of work, so good luck with that one . . .

but here's an idea for your second example:
write a compare routine that takes two strings and uses the first string to compose a regex term and iteratively compare it to the second string, with each iteration replacing a single character in the first string with a wildcard.
Example:
to compare the two strings "Hello" and "hallo" your routine would compose the regex terms
/.ello/
/H.llo/
/He.lo/
. . . and so on, comparing each one to "hallo" until a match is made or you overrun the length of one of the strings. This algorithm should catch simple one-off spelling mistakes but keep in mind that the performance will totally suck, as it will be relational to (the string length * regex computation time).

If performance in you app is an issue then maybe this won't be a feasible solution for you but maybe the experts here can provide some optimization suggestions or alternative ideas Smile | :)

modified on Sunday, December 09, 2007 6:29:03 PM

GeneralRe: string matching(Please Help) Pin
mycsharpcorner10-Dec-07 4:24
mycsharpcorner10-Dec-07 4:24 
Generalcustimizing repeater controls Pin
Imran Adam9-Dec-07 1:08
Imran Adam9-Dec-07 1:08 
GeneralTCP/IP (Listener, Client and Raw Sockets) Pin
half-life8-Dec-07 22:29
half-life8-Dec-07 22:29 
GeneralRe: TCP/IP (Listener, Client and Raw Sockets) Pin
Anthony Mushrow9-Dec-07 0:00
professionalAnthony Mushrow9-Dec-07 0:00 
GeneralRe: TCP/IP (Listener, Client and Raw Sockets) Pin
half-life9-Dec-07 0:11
half-life9-Dec-07 0:11 
GeneralDataGridView Maximum Number of Rows Pin
Shaahinm8-Dec-07 22:14
Shaahinm8-Dec-07 22:14 
GeneralRe: DataGridView Maximum Number of Rows Pin
Xmen Real 9-Dec-07 1:56
professional Xmen Real 9-Dec-07 1:56 
QuestionHow to open a file in .dll Pin
Strategic_Thinker8-Dec-07 21:41
Strategic_Thinker8-Dec-07 21:41 
AnswerRe: How to open a file in .dll Pin
Christian Graus8-Dec-07 21:45
protectorChristian Graus8-Dec-07 21:45 
GeneralRe: How to open a file in .dll Pin
Strategic_Thinker8-Dec-07 21:53
Strategic_Thinker8-Dec-07 21:53 
GeneralRe: How to open a file in .dll Pin
Christian Graus8-Dec-07 22:34
protectorChristian Graus8-Dec-07 22:34 
AnswerRe: How to open a file in .dll Pin
Giorgi Dalakishvili8-Dec-07 21:50
mentorGiorgi Dalakishvili8-Dec-07 21:50 
AnswerRe: How to open a file in .dll Pin
Anthony Mushrow8-Dec-07 23:53
professionalAnthony Mushrow8-Dec-07 23:53 
GeneralRe: How to open a file in .dll Pin
Xmen Real 9-Dec-07 2:05
professional Xmen Real 9-Dec-07 2:05 
GeneralTimer Issue-Stack overflow exception Pin
Arun Abraham Jose8-Dec-07 21:31
Arun Abraham Jose8-Dec-07 21:31 
GeneralRe: Timer Issue-Stack overflow exception Pin
Christian Graus8-Dec-07 21:48
protectorChristian Graus8-Dec-07 21:48 
GeneralRe: Timer Issue-Stack overflow exception Pin
Arun Abraham Jose8-Dec-07 22:23
Arun Abraham Jose8-Dec-07 22:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.