>>654
String#sub!(pattern, replace) は使っちゃダメ。絶対。
String#sub!(pattern) {|matched| .... } の方を使いましょう。

mes.sub!(/<FN>/) { fpath }