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.
ポーランド語ユーザーに質問。次のような名前の検証があります。
:format => {:with => /\A[a-zA-Z]+\z/}
どうすればこれに磨きをかけることができますか - ążźćńęółśż
名にアクセントのない文字とその特定のサブセットの文字が含まれていることを検証したい場合、正規表現でサブセットを明示的に宣言するのが最も正確な方法だと思います。このようなもの:
:format => { :with => /\A[ążźćńęółśża-zA-Z]\z/ }