Newb Newb wrote: > Is there any regualar expressions,which Should not allow blank space as > the first character for my Department Name field.
Yes. Check out the regex documentation in the Pickaxe Book. Pay particular attention to the following constructs: [], \s, and ^ (in both its senses). Or just use String#strip. > any helps on this... > Thanks You're welcome! Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

