Matches a substring from a string with a pattern
fun [S S] [[S r1] r1]
Return : [[S r1] r1] a list of substrings or nil if not found or error
strextr