' means $' which is everything after the match. Escape the again and it works "Yaho'o".gsub("'", "\\'").
確定! 回上一頁