This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # Rubyだったら正規表現はすごい簡単だよ!!! | |
| # 他の言語ではいくつかパターンがありますが、自分はRubyほど楽に正規表現を利用できる言語を知りません。 | |
| msg = "まなさん大好き" | |
| # Ruby では正規表現リテラルがあります。 | |
| # // のリテラルはそれだけで正規表現のリテラルです | |
| # かなりperl的なのです^q^ |