Regex flavor of TermInjector

Hi,

I am trying to debug some TermInjector regular expressions, but I am not sure which flavor it uses exactly. The manual says "Posix", but RegexBuddy offers Posix BRE and Posix ERE, which differ quite a lot. Is one of them actually the flavor of TI or is there yet another one? Does anybody know? Maybe ?

Daniel

  • Hi,

    Cool to hear that someone is still using TermInjector. I made the program very early in my programming career, so I made some questionable design choices. One of them was implementing a custom regex engine with just a subset of POSIX regex functionalities (only the ones listed here: http://www.tntranslations.com/TermInjectorHelp.html). The custom regex engine is based on finite-state machines, so it's theoretically super-fast when processing a big list of regexes, but I don't think anyone's ever really needed that speed. I have been working on a new version with .NET regexes, but other work keeps interfering.

    What's the debugging problem you are having, maybe I can help?

    -Tommi

  • Hi

    Thanks for the response - yes, I am using TermInjector for tasks where the target always needs a certain type of reformatting or simple changes have to be made again and again and again. I find it very useful. I point it to the project TM, so that it stays up do date with its suggestions, and I edit the regex file as I go.

    I don't have a specific debugging issue now, but I was looking for a way to test my regex in general. I am used to the PCRE and .NET flavors, and to RegexBuddy's and PowerGrep's custom Powergrep 5 flavor, which is the best of them all. I would like to find a way to do my regex checks like I do for Studio (.NET) or PowerGrep.

    If I had a wishlist for TermInjector, it would be that it runs on a standard regex flavor (.NET would be best since Studio uses the same) and that it auto-updates the settings (setting file change will automatically trigger update of rules used), since it's quite cumbersome to tweak at the moment.

    I would write an updated tutorial or manual if you want - I am going to do that anyways for inhouse use.

    Daniel

  • Thanks for your offer of doing a tutorial, I'll keep that in mind, as well as your wishlist. Once I have my current projects wrapped up, I'll pick up the work on the new TermInjector.

  • Since you popped in here and I just happened to see this, also wanted to thank you for your work on TermInjector! I find it an extremely useful and powerful tool for working in Studio! Really appreciate that you are continuing to work on it!! Thanks again!