/ Published in: Regular Expression
URL: http://screenflicker.com/mike/code/textmate-regex-replace/
search for anything in-between two 's and then replace the found string into the PHP if/else staement. $1 is wher TextMate stores the found string. (see http://screenflicker.com/mike/code/textmate-regex-replace/)
Expand |
Embed | Plain Text
Search Term: <TAG>(.*)</TAG> Replace Term: \$$1 = \$_POST['$1']; if (\$$1) echo "<tr><td>$1</td><td>\$$1</td></tr>"; else echo "";
You need to login to post a comment.
