in reply to Regex hackery

Note that you will have ambiguities

3. go 2 286.22 MB
go 2,286.22 -or- go,2286.22

I used the colon because no desktop OS would allow that in a filename, so I am safe.

I guess you only tried the single one that doesn't allow you (Windows). All unixy system allows you to have colons in file names, incl linux and Macs.

(Doh! I meant to call my Mac using roomy to confirm that the Mac desktop allows you to use colons before posting this, but it seems I submitted the post without even realising it. Feel free to correct me.)

Replies are listed 'Best First'.
Re^2: Regex hackery
by graff (Chancellor) on Jun 13, 2009 at 17:01 UTC
    $ uname -s Darwin $ touch test:file $ ls test:file test:file
    Yep, file names with colons are okay on macosx.
      I asked about the GUI. I don't expect it to be any different, but the OP specifically talked about desktops.

        10.4 doesn't like it from the Finder. It rejects it: "The name 'blah:blah' cannot be used. Try using another name, with fewer characters or no punctuation marks."