1 Reply Latest reply: Jan 5, 2005 7:42 AM by 807596 RSS

    Parsing time strings in HH:MM format

    807596
      Hi,

      What's the correct way to tell a StreamTokenizer to treat a time string in hh:mm format as an ordinary word?

      This is parsing the string "15:50" as ":50" using a default StreamTokenizer object.
      tokenizer.wordChars('\u0030','\u0039');
      tokenizer.wordChars(':', ':');
      Cheers!