2010-08-27 61 views

回答

1

嘗試使用:

pattern = /\A#{dtext}\z/, nil, 'n' 

退房details on encodings and regexp更多。

我在encodings in Ruby上使用並推薦了這篇超棒的文章。

+0

這不適合我。他提到的文件在這裏https://github.com/wireframe/email-validator/blob/master/lib/rfc822.rb – gucki 2011-03-25 08:17:04

相關問題