在 Ruby 中,有一个叫做
我猜
gsub
的函数,其中 g 代表全局(global),sub 代表替换(substitution)。
preg_match
中的 p
是什么意思呢?我猜
reg
是指正则(regular),而 match
确实是匹配(match)。对吗?