Return to Snippet

Revision: 27198
at May 27, 2010 18:52 by rwczippy

Initial Code
Search Term:

Replace Term:
\$$1 = \$_POST['$1'];
if (\$$1) echo "<tr><td>$1</td><td>\$$1</td></tr>";
else echo "";

Initial URL

Initial Description
search for anything in-between two <TAG>'s and then replace the found string into the PHP if/else staement. $1 is wher TextMate stores the found string. (see

Initial Title
RegEx to find replace in TextMate

Initial Tags
regex, php, textmate, search, replace

Initial Language
Regular Expression