Find various forms of a word fast(er|est) this reg. expression th(is|e|at) will find the words This, The, and That ---------------------------------------- Find a specific tag Here is a useful regular expression for dealing with XML or HTML files - it matches an opening, closing or singular blink tag. Simply replace blink with your tag of choice. <(/?)(blink)( [^>]*)?(/?)> Matches: Does not match: To use it in a search and replace (for instance, replace all blink tags with spans) use the following as the replace string: <\1span\3\4> ---------------------------------------- (.*) Means a string of any characters zero or more in length. ---------------------------------------- Remove all leading spaces and tabs from every line Find: "^[ |\t]+" (without quotes) Replace: "" (without quotes) RegExp [edit]Remove all trailing spaces and tabs from every line Find: "[ |\t]+$" (without quotes) Replace: "" (without quotes) RegExp [edit]Delete everything inside a tag pair (keeping tags) Find: "().+()" (without quotes) Replace: "\1\2" (without quotes) RegExp Note: Tags must be on the same line. [edit]Delete everything inside a tag pair (removing tags too) Find: ".+" (without quotes) Replace: "" (without quotes) RegExp Note: Tags must be on the same line. [edit]Truncate last value from a MySQL INSERT query Find: "(VALUES \('...', '.+'), .+\);" (without quotes) Replace: "\1);" (without quotes) RegExp [edit]Keep only last value in a MySQL INSERT query Find: "(VALUES \(.+,)(.+\);)" (without quotes) Replace: "VALUES (\2" (without quotes) RegExp Retrieved from "http://editplus.info/wiki/Search_and_Replace_Tricks"