Skip to content

Instantly share code, notes, and snippets.

@lpvm
Created December 3, 2018 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lpvm/77780cb47fc8ef9281ce6188260ccbc2 to your computer and use it in GitHub Desktop.
Save lpvm/77780cb47fc8ef9281ce6188260ccbc2 to your computer and use it in GitHub Desktop.
Parse multiple lines copying to block
i: "1#11^/2#22^/"
b: copy []
parse i [collect into b [copy l some digit "#" copy r some digit newline]]
; == false
probe l
; == "1"
probe r
; "11"
; == true
probe b
; == []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment