This example asks you for a string, and also for an expression (which can be a regular expression). It will then hunt for the (regular) expression in the string and return the result of the search() function.