View unanswered posts | View active topics


Reply to topic  [ 1 post ] 
Feature Request: saved searches / find & replace settings 
Author Message
Member

Joined: Wed Sep 23, 2009 6:04 pm
Posts: 20
Post Feature Request: saved searches / find & replace settings
I have a request for the find & replace panels. Many times I'll use a set of strings and regular expressions to clean, add some code to classes or convert data. Here are a few examples:
Code:
Make event listeners weak.
button.addEventListener(MouseEvent.CLICK, handleButton); -> button.addEventListener(MouseEvent.CLICK, handleButton, false, 0, true);

Find what:    addEventListener\(([a-zA-Z0-9._\-]+, [a-zA-Z]+)\);
Replace with: addEventListener($1, false, 0, true);
Options:      Match Case, Regular Expressions
Code:
Convert 2 column Excel tab delineated data to XML.
header   The Title -> <header><![CDATA[The Title]]></header>

Find what:    ([^\s]*)\t([^\r]*)
Replace with: <$1><![CDATA[$2]]></$1>
Options:      Match Case, Regular Expressions
I have a few more of these that I use a lot. It would be awesome if I could save these settings and load them up when I needed them. Thanks guys!


Tue Nov 02, 2010 6:56 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.