|
-
Apr 25th, 2002, 08:52 AM
#1
Thread Starter
Frenzied Member
Rave: Mini-NoteTab
I just had to sing praise to the text editor my client uses. I had written a 700+ line VBScript ASP with a multideminsional array. I wanted to change it over from an array to a dictionary object, but I didn't want to go line by line and edit it all by hand.
I started downloading ActivePerl, figuring I could write a four line program that would do a search/replace for me. As I'm doing that I look over the search/replace in NoteTab and see that it will do rudementary regex. I was able to replace every instance of arrDays(currDay, Day_Level, Day_Metric) with dictDays.Item(currDate).Item("Level").Item("Metric") in just two passes.
Damn, and I was looking for a reason to re-install Perl.
Travis, Kung Foo Journeyman
As always, RTFM.
WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
YBMS, but Mozilla doesn't.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|