
Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[tlug] Japanese Regex (Ruby on Rails)
- Date: Wed, 22 Apr 2009 09:34:27 +0900
- From: Patrick Niessen <tlug.niessen@example.com>
- Subject: [tlug] Japanese Regex (Ruby on Rails)
Hi everyone,
I am trying to find the Japanese / Unicode equivalent for the
following Regular Expression, to verify web form input:
validates_format_of :screen_name,
:with =>/^[A-Z0-9._]*$/i,
:message => "must contain only letters, numbers and undescore % or dots."
My guess is, that normal characters live within a defined range so I
suppose one only needs to check whether the submitted forms parameter
are within that range.
Thanks!
--
Patrick Niessen
Home |
Main Index |
Thread Index