これは非常に簡単です。特殊文字のルビー文字列を削除するにはどうすればよいですか。文字は次のとおりです: http ://www.fileformat.info/info/unicode/char/2028/index.htm
そして、これが文字列で、ピリオドと終了引用符の間に2つの特殊文字が含まれています。
"Each of the levels requires logic, skill, and brute force to crush the enemy.
"
私はこれを試しましたが失敗しました:
string.gsub!(/[\x00-\x1F\x7F]/, '')
とgsub("/\n/", "")
私はルビー1.9.3p125を使用しています