in reply to Re^2: String expansion script
in thread String expansion script

D'Oh. --me (jdporter--) for not actually testing your code before making a statement about its behavior.

So I tested your code, and it doesn't do for me what you say it does for you:

/[09:10]/
/09/ /10/
/{x:y}/
/x/ /y/
/[09:10]/{x:y}/
/[09:10]/x/ /[09:10]/y/

Replies are listed 'Best First'.
Re^4: String expansion script
by blazar (Canon) on Feb 04, 2005 at 08:35 UTC
    So I tested your code, and it doesn't do for me what you say it does for you:
    You're right, there's an obvious bug. I am really surprised that it had not popped out before (I mean, because I make a relatively intense use of it).

    In the meantime I have slightly changed my mind about the "format" of input strings in a way that will add to functionality without requiring additional coding efforts, nay, probably making the code even lighter...

    I'll post an updated version ASAP, but not now. I must go to study!