ColdFusion Builder Extension: Regular Expression Find And Replace

Posted December 3, 2009 at 10:26 AM by Ben Nadel

Tags: ColdFusion

I know that ColdFusion Builder and the Eclipse platform already have regular-expression-based find and replace support; but, coming from the HomeSite world, I know what it's like to have really usable find and replace support (oh snap! buuuuurrrn!). As such, I figured I would try to extend the built-in find and replace functionality with ColdFusion Builder's ColdFusion-based extension mechanism. Working on it last night and this morning, here is what I came up with. It only works with one file at a time (no extended find/replace yet), but the interface is much more reminiscent of HomeSite.


 
 
 

 
ColdFusion Builder Extension: Regular Expression Find And Replace Video Preview.  
 
 
 

There's too much code involved to show it in this blog post, so I have created a ColdFusion Builder Extension: RegEx Find And Replace project in my projects area. I already have a number of ideas that I want to add to this; but, if you have anything you'd like to see me add, please leave a comment below.



Reader Comments

Dec 3, 2009 at 1:01 PM // reply »
51 Comments

Awesome stuff Ben! ColdFusion builder is going to make my favorite IDE event better! I am loving the extensions that have already come out and excited to see what talented people like yourself come up with!


Dec 3, 2009 at 2:19 PM // reply »
11,246 Comments

@Dan,

Yeah, the extension stuff is exciting. I have to admit, this is the first time that I personally felt the real excitement. I played around with some other stuff, but it more just felt like "fun" things; this is the first time I truly felt like I was *extending* the platform itself - I was way pumped up.


Dec 3, 2009 at 2:20 PM // reply »
51 Comments

Its no Ben Nadel Code Converter but it will do!


Dec 3, 2009 at 2:26 PM // reply »
11,246 Comments

@Dan,

Ha ha ha ha :)


Dec 3, 2009 at 11:59 PM // reply »
110 Comments

That is *really* cool. I still haven't played around at all with CF Builder, but all of the neat little extras are certainly making me more interested in trying it out.


Dec 4, 2009 at 12:23 AM // reply »
1 Comments

Really cool stuff!!


Dec 4, 2009 at 1:09 AM // reply »
2 Comments

Very cool, Ben! Very Homesite+ ish! ;)


Dec 4, 2009 at 8:04 AM // reply »
11,246 Comments

Thanks guys. Some more thoughts I had about adding to this:

* Baked-in "common use" regular expressions like:
-- Find all tags.
-- Find all tags with given name.
-- Find email addresses.

I don't know how useful that would be. BUT, to build on top of that idea, being able to save your regex patterns with names would be badass (so that they can be pulled up quickly later, say from a drop down or a modal window).

* Other non-regex functionality like being able to UPPER or lower case the matched pattern.


Dec 17, 2009 at 4:56 PM // reply »
1 Comments

Thanks for this extension and especially for the video explaining it.


Jan 5, 2010 at 9:25 AM // reply »
11,246 Comments

@Dale,

My pleasure.


Post A Comment

Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.

Please review the following issues:

Author Name:


Author Email:

Author Website:

Comment:

Supported HTML tags for formatting: <strong>bold</strong>   <em>italic</em>   <code>code</code>







  • Help Wanted - Find Your Next ColdFusion Job
Ben Nadel's Company - Epicenter Consulting Recent Blog Comments
May 25, 2013 at 9:31 PM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Daxesh, I am not sure I understand the question about the current node. If you already have a reference to the current node, why would you need to query for it? As for parent node, I believe that ... read »
May 25, 2013 at 10:08 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
@Ben, my question is that i want the current node with its tag and its parent node. i just want only that data. So, give me the solution for that. and remember solution is working on " xpath 1.0 ... read »
May 25, 2013 at 10:01 AM
Using "//" And ".//" Expressions In XPath XML Search Directives In ColdFusion
hey ben, i want get my current node tag and also want the root node tag withing. So, how can i fix it.. ! ... read »
May 24, 2013 at 5:39 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Adam Oops! My mistake! I hadn't gotten that far in my testing - I'm still baby stepping my way through the process. ... read »
May 24, 2013 at 5:13 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
Hi Jason, Thanks for checking up on that, but I still stand firm on my position. :) There are actually two listLast()'s in use, and you're right that the one using a space as a delimiter is fine. ... read »
May 24, 2013 at 4:45 PM
Ask Ben: Manually Enforcing Basic HTTP Authorization In ColdFusion
@Ben I have been lurking your site for quite some time, and haven't stepped up to comment until today. Thanks for all the great info - keep it up! @Adam I believe you are mistaken... as the commen ... read »
May 24, 2013 at 11:21 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@WebManWalking, Ha ha, let's us never speak of justifying "##" notation again :P ... read »
May 24, 2013 at 11:18 AM
Strange Interaction Between DeserializeJson(), ArrayContains(), And Database Values In ColdFusion
@Ben, Ah, so it was indeed how I vaguely remembered it to be: A direct assignment value = users.id[ i ] causes value to retain the sticky datatype of the query column. Although unnecessary in ... read »
InVision App - Prototyping Made Beautiful With Prototyping Tools