From: Jimmy Kofler Date: 2007-12-01T19:16:45+09:00 Subject: Re: Unicode in Regex > Unicode in Regex > Posted by Greg Willits (-gw-) on 30.11.2007 21:18 > This is mostly a Ruby thing, and partly a Rails thing. > > I'm expecting a validate_format_of with a regex like this > > /^[a-zA-Z\xC0-\xD6\xD9-\xF6\xF9-\xFF\.\'\-\ ]*?$/ > > to allow many of the normal characters like 旦 辿 奪 to be submitted via > web form. How about the utf8 validation regex here: http://snippets.dzone.com/posts/show/4527 ? -- Posted via http://www.ruby-forum.com/.