Share some code between match and split and text layer extraction, fix also a bug in match and split as wikipedia.setSite() no longer exist.