String functions
Winston — Tue, 2009-09-15 10:09
In my job, I regularly have to manipulate, and extract data from, large xml files and large sql queries. Sometimes its a "remove first 10 chars from 100 lines" situation, or a "find all the lines that don't contain any of these strings," or just I want to do a find and replace on a string that involves newline characters.
One day, the scale of what I had to do was so big that it was quicker to make a program to do it than to do it manually. I made this program modular, so that I could easily add other functions to it, and StringFuncs was born.
Currently, it incorporates 45 seperate functions - some of them are commonplace (eg Find), others are common but with a twist (Find and Replace with multiline input, Find and Replace in files), and others are just not seen anywhere else that I'm aware of (given two sets of strings, remove all strings that aren't in both lists, or remove all strings that are in both lists).
Its a small exe written in C#, and requiring .NET 2.0 to run. Its saved my ass on several occasions, and has helpful little tooltips that explain every function. Its completely freely available to do whatever the heck you like with...
And its available here:
www.ftwinston.com/download?file=StringFuncs.zip
