Created
December 3, 2018 16:38
-
-
Save lpvm/77780cb47fc8ef9281ce6188260ccbc2 to your computer and use it in GitHub Desktop.
Parse multiple lines copying to block
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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