Paste: PCRE feature demo

Author: rien
Mode: factor
Date: Sat, 10 Dec 2011 19:38:45
Plain Text |
IN: scratchpad [ RE/ (\w+)
      \/
      (\d+)/ &re-free "apples/1 pears/2 kiwis/3" match-all all-matches ] with-destructors .
{ { "apples" "1" } { "pears" "2" } { "kiwis" "3" } }

Annotation: and with quotes

Author: rien
Mode: factor
Date: Sat, 10 Dec 2011 19:46:14
Plain Text |
IN: scratchpad [ RE/ (\w+)
      "
      (\d+)/ &re-free "apples\"1 pears\"2 kiwis\"3" match-all all-matches ] with-destructors .
{ { "apples" "1" } { "pears" "2" } { "kiwis" "3" } }

New Annotation

Summary:
Author:
Mode:
Body: