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”
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 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
-~----------~----~----~----~------~----~------~--~---