##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: November 2016 # Modified: 2016-11-25/23:55-0500 ##+ # # Span.icn, pattern matching function, one or more characters # procedure main() "string" ?? Span('pqrstuv') => result write(image(result)) # add a fence for anchored pattern matching, to demonstrate Span fail "no match at start of string" ?? Fence() || Span('pqrstuv') => second write(image(second)) end