O
Oliver Cromm
I just stumbled over the following effect and (trial-and error)
workaround:
p "abcxyxyxydef".split(/(xy)+/) #=> ["abc","xy","def"]
p "abcxyxyxydef".split(/(?:xy)+/) #=> ["abc","def"]
Why this difference?
workaround:
p "abcxyxyxydef".split(/(xy)+/) #=> ["abc","xy","def"]
p "abcxyxyxydef".split(/(?:xy)+/) #=> ["abc","def"]
Why this difference?