Slide 37
Slide 37 text
Ruby で書記素を扱う
正規表現 \X
> '�
��
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
��
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�'.scan(/./)
["�
�", "�
�", "�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�", "�
�
�
�
�", "", "�
�
�
�
�
�", "", "�
�
�
�
�
�
�
�
�", "", "�
�
�
�
�"]
> '�
��
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
��
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�'.scan(/\X/)
["�
�", "�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�", "�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�
�"]
37