in reply to Re: When the only tool you have is a screwdriver...
in thread When the only tool you have is a screwdriver...

You are right. It really is a parsing problem. I have been looking forlornly at things like RecDescent, wishing I had it on the system in question. I will probably flog this dead horse a bit longer before I have to tell them the that handle of the screwdriver doesn't pound to well and that I need a hammer also.
  • Comment on Re^2: When the only tool you have is a screwdriver...

Replies are listed 'Best First'.
Re^3: When the only tool you have is a screwdriver...
by Anonymous Monk on Oct 08, 2015 at 19:45 UTC

    No need for a hammer. See "sub e" in 1144217 . It's only three lines long :)

    The first line looks for what starts an "e".
    The second line looks for what can follow an "e" and still be an "e".
    The third line indicates success :)

    What could be simpler ? (hehehe)

      That indeed does work. What I was looking for was a single regular expression that could be tested against the text files. I would have to totally revamp the logic of the tool to use it. I finally did get the regular expression to do the trick and it is extremely long. Goes to show how a little logic can match a whole lot of regex.