Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C# では、特殊文字を文字として使用する必要がある場合、文字列に演算子を使用できることを知っています。のよう%"!@#*&#Y!@#*&!@#\123"です。Rubyでそれを行う方法を知っている人はいますか?
%"!@#*&#Y!@#*&!@#\123"
Ruby では、文字列区切り文字として'orを使用できます。"前者は、文字列内で特別な文字を処理しません\n。後者はそうします。
'
"
\n