Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Parse query

From: jrdrp::blueyonder::co::uk at: 11-Nov-2001 22:27

Hi all, How can I use parse to extract particular subtrings from a string e.g. telephone no (NNN-NNN-NNNN), date (DD/MM/YYYY). digit: charset "0123456789" str: "abcdefgh 09/11/2001 xyz" parse str [to 2 digit "/" 2 digit "/" 4 digit copy datestr to end] returns false. Does the to keyword only support simple character string arguments? Should I use find function instead/ TIA John