in reply to Specific instance of a repeated string

Unless there's some more definite design or convention for defining what the prefix and suffix are supposed to be, this endeavor is going to smell bad. Perhaps your notion of "prefix-number-suffix" began when there were only file names like "file-01.html" -- but now someone has invented file names like "01-file-01.html", and maybe next month, they'll come up with "01-file-01-new-01.html", "file-01-03-01-new.html", and who knows what else.

Folks here may be able to help more if given a bit more information about your situation.

  • Comment on Re: Specific instance of a repeated string

Replies are listed 'Best First'.
Re^2: Specific instance of a repeated string
by Ionizor (Pilgrim) on Aug 09, 2003 at 22:51 UTC

    The prefix can contain numbers, as can the suffix. The idea is to increment one number to generate a list, e.g.

    01-file-01.html 01-file-02.html 01-file-03.html ...

    Only one number is ever going to form the basis for the list so the other numbers in a filename should be part of either the prefix or the suffix. I get the feeling I'm not explaining this very well...

    --
    Grant me the wisdom to shut my mouth when I don't know what I'm talking about.