473,394 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to do "Did you mean?" a la Google

Hi,

I'm a terrible speller. So are many people, and I think it's getting
worse. That's why Googles' function to suggest re-searching with
corrected misspelled words is really nice.

Now I'm implementing an aspx page to handle 404 NotFound cases, and I
thought it'd be cool to look at the page name that the user tried to
access and see if it nearly matches any existing pages. Then I could
show a page like: "This file cannot be found. Did you mean to go to bla
bla bla".

Are there any precoded routines out there to take a string and compare
it to a list of similar strings?

Cheers
Nov 19 '05 #1
1 1776
Check out Regular Expressions (supported very well in .NET)
http://www.regexlib.com/

-HTH
"Colin Peters" <cp*****@coldmail.com> wrote in message
news:42********@news.bluewin.ch...
Hi,

I'm a terrible speller. So are many people, and I think it's getting
worse. That's why Googles' function to suggest re-searching with corrected
misspelled words is really nice.

Now I'm implementing an aspx page to handle 404 NotFound cases, and I
thought it'd be cool to look at the page name that the user tried to
access and see if it nearly matches any existing pages. Then I could show
a page like: "This file cannot be found. Did you mean to go to bla bla
bla".

Are there any precoded routines out there to take a string and compare it
to a list of similar strings?

Cheers

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Derek Wickersham | last post by:
Easy newbie question. I've searched all the PHP documentation I can find, but can't find an answer. What does the "@" mean, in this context: @mysql_select_db( "scripts");
2
by: Scott | last post by:
MySQL calls 4.1.5 a "Gamma" release. What does that mean?
1
by: Don | last post by:
I am updating my XSD schema but am not sure what msdata means? Any direction to a good online reference would be great. Thanks, Don
5
by: Bob Sparks | last post by:
I upgraded to stinger and got stung. Not all my code compiles. Most of the problems are stinger seems to be more stringent on casting varchars to vargraphics. This I am working out, however, one...
3
by: Dave | last post by:
Greetings All, I have never seen this error before, and after an extensive search of Groups, I cannot find a satisfactory answer to my basic question. What exactly does "is not a member of...
4
by: eric.goforth | last post by:
In an xsl stylesheet, I have <xsl:when test="string-length(//mystuff) &gt; 0"> <xsl:attribute name="someattribute">blahblahblah</xsl:attribute> </xsl:when> In the xml that mystuff is several...
1
markmcgookin
by: markmcgookin | last post by:
Hi, Just a question to see if anyone has come up with this before? My google-ing didnt return a result as yet. I use the MS GPS sample to tap into mobile devices GPS and in one of the classes,...
7
by: lucy82m | last post by:
Hello, I want to add the 'did you mean' feature (like on Google) on my shareware site, where a lot of users have mistypes, and they get 0 results... so they exit the site very fast. Do you have any...
1
by: miller.paul.w | last post by:
This is a wee bit OT, but I am looking for algorithms to implement search suggestions, similar to Google's "Did you mean... ?" feature. Can anyone point me to web pages, journal articles,...
0
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...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.