replace cut by regexp

fix #112