擅长:python、mysql、java
<pre><code>import re
rgx = re.compile('^[ \t]*((echo|print_r).*;)', re.MULTILINE)
for line in rgx.finditer(code):
print line.group(1)
# echo '<pre>'; print_r(1); echo '</pre>';
# echo '<pre>'; print_r($temp); echo '</pre>';
# echo '<pre>'; print_r($temp3); echo '</pre>';
# print_r($temp1);
# print_r($temp2);
# print_r($temp4);
</code></pre>