[REBOL] Parse question
From: semseddinm:bircom at: 19-Mar-2010 14:20
Hi, how do I extract just valid items or skip invalid ones using parse: blk: [1 "a" 2 "b"] ;there are 2 valid values>> parse blk [some [integer! string! (print "ok")]]ok ok>> blk: [1 "a" 1.2.3 2 "b"] ;there is an invalid item 1.2.3 >> parse blk [some [integer! string! (print "ok")]]ok == false How do I say, take the valid ones, just like in regular expressions?