Trying to find a regular expression to remove blocks of PHP from HTML scripts in Eclipse. Finally found the following search string to work so I can create html-only views of the php forms.
<\?php .*? \?>
If you are looking to comment out certain lines of PHP based on regular expressions in Eclipse using Find/Replace, like commenting out the following instances of this line where ‘
txtJl05mcpKl‘ is different in each line:
… then in Find/Replace you would use the following (with the regular expression option checked):
Replace with: //\$this->$1->AddItem\(“—“,null\);