Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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

Home Page Mailing List Linux and Japan TLUG Members Links