search and replace regular expression on editor
Posted: Wed Nov 26, 2008 9:35 am
Hello,
I am trying phpdesigner editor and I would like to be able to search and replace.
This is the scenario.
I have a big xml and I want to
change
<data1>dfghj</data1>
to
echo '<data1>' . htmlentities($node->data1) . '</data1>';
I can create de echo lines with the editor and use a regex to to this
echo '<data1>' . htmlentities($node->XXXX) . '</data1>';
BUT , Is there any way to capture the data1 part so that every line is replace with the correct tag instead of my default XXX
Thank you
I am trying phpdesigner editor and I would like to be able to search and replace.
This is the scenario.
I have a big xml and I want to
change
<data1>dfghj</data1>
to
echo '<data1>' . htmlentities($node->data1) . '</data1>';
I can create de echo lines with the editor and use a regex to to this
echo '<data1>' . htmlentities($node->XXXX) . '</data1>';
BUT , Is there any way to capture the data1 part so that every line is replace with the correct tag instead of my default XXX
Thank you