Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at CFUNITED 2009 (Lansdowne, VA) with:

ColdFusion Builder Extension: Regular Expression Find And Replace

By Ben Nadel on
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

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!

Reply to this Comment

@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.

Reply to this Comment

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.

Reply to this Comment

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.

Reply to this Comment

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
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.