Search Algorithm Snippets


Source code for KMP String Search Algorithm

28 June, 2012   

Function to generate soundex code for any string (usually a name). Conforms to Knuth's algorithm and the common Perl implementation.

31 January, 2012   

Use this code to put Google search bar on web page.

03 April, 2013   

Nice little search form snippet using HTML and CSS

C code snippet for merging sort algorithm to sort

30 January, 2013   

JQueryUI Search Auto complete Jump Menu with data from remote URL

23 November, 2013   

You can search and replace fields by below query in MySQL Database

MySQL MATCH() function performs a natural language search for a string against a text

12 January, 2013   

Search the source code of all stored procedures.

User below meta tag to prevent all search bots from indexing a page

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

This code will break a string of words up along the spaces and do a mySQL search for each of the words in the string.

05 August, 2014   

PHP code example to highlight words in a string.

If a string is contained in another string and you need to search for it, this is a very clever way to do it:

02 April, 2017   

Last name matches the user input and returns their phone and email information

Open up a text editor, copy & paste the code below. Save the file as: "commandlinefu.py" and exit the editor.

This example code showing how to use PHP Functions to clean User Input

14 February, 2011   

You'll need a of copy Simple Pie for the include right at the top here.

PHP snippet for displaying your latest tweet

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.