sub 會換掉“第一個” 符合的string gsub 則會換掉“全部” 符合條件的string Example: sub gsub Ref: Ruby Sub, gsub: Replace String - Dot Net Perls.
確定! 回上一頁