Although I understand the request and the motivation, I can't agree that it's a reasonable request. As the RE engine stands:
- It can do what is required.
- Its behaviour is orthogonal.
- Its behaviour is simple.
Key to understanding my objection is the fact that we are discussing the behaviour of a
regular expression engine. Modifying it to directly support a specialised requirement like this would make it an irregular expression engine. One of the great joys of using Textpad is the very low bug count. I swear that it's the most stable non-trivial software I have ever used. This reliability stems from the fact that each of the building blocks does exactly one thing in a very orthogonal way. Personally I'd like to see it stay that way.
The request is kind of like saying "Excel is a great spreadsheet but there's no ComputeTaxReturn function, this would be very handy, can we include one?"
Use two expressions. There's no charge.
That said, it's great to see that people are taking sufficient advantage of Textpad for such a question to arise. I've been using it since 1993, got around to registering it in 1995, which must be the longest genuine evaluation in history, and I'm pleased to see Helios surviving the IT downturn.