• LOG IN

FTWinston.com

  • blog
  • mods
  • utilities
  • search
  • about
Home

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

  • Add new comment

Twitter feed

  • Trace explosives detected on my laptop! Apparently. Set off some red flashing lights & some beeping, and i got a form filled in & everything — 25 weeks 2 days ago
  • Flew down to london, ears were fine but the rest of my head exploded during descent to make up for it. London's freezing! — 25 weeks 3 days ago
  • I'm up before 5am tomorrow for a one-day business trip to london. Ultra-early easyjet economy class - classy! Loadsa meetings, here I come! — 25 weeks 3 days ago
  • Ok, so it turns out that as a bee in Mario Galaxy, you don't have to keep bashing the button the fly and get RSI. You just hold it. Damn! :( — 25 weeks 3 days ago
  • All night building a meccano frame to drive my netbook around - and it turns out meccano motors are too damn weak to haul it! Plus one w ... — 27 weeks 1 day ago

view all | goto twitter

  • blog
  • mods
  • utilities
  • search
  • about