mtnpatch: replace split with regex