search and replace regular expression on editor

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
yacahuma
Forum Regular
Posts: 870
Joined: Sun Jul 01, 2007 7:11 am

search and replace regular expression on editor

Post by yacahuma »

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
Post Reply