On Jun 20, 11:41 am, Newb Newb <[email protected]>
wrote:
> Hellow everyone...
> i have to validate a my folderpath field...
> could you people suggest any reqular expression to validate a valid
> path...
> that field should not accept input like “My Documents”
> but should accept “c:\Backup”

You're going to have to be a little more precise: what is it that you
are trying to ensure? No spaces, no special characters, absolute paths
only, something else ? Also what about platforms where paths are
delimited in different ways ? What will you be doing with this path ?

Fred

> i searched the web and i tried this...
> Regular Expression:
> ^((([a-zA-Z]:)(\\{2}[a-zA-Z]+)(\\{2}\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}))(?= 
> (\\(\w[\w
> ]*)))(\\\w[\w ]*)*)$
> .but was not usefull...
> pls favour for me...
> Thanks for any helps
> --
> Posted viahttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to