Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
testy1
Involved
Involved



Joined: Apr 06, 2008
Posts: 484

PostPosted: Sun Jul 13, 2008 9:55 pm Reply with quote

Im setting up the member application and see that i can use a validated entry with it, it asks for regex so i assume it means javascript regex or are all regex the same no matter what language.

basically i want people to give me a path for e.g. there specific file path.

e.g.

/var/home/billybob/rocks/

in the above e.g. is it possible to check for say a starting / and then only uppercase or lowercase letters and maybe underscores and then check for another /

i hope this makes sense.
 
View user's profile Send private message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Mon Jul 14, 2008 7:35 am Reply with quote

Are you talking about the new RN YA? So you are adding a custom field?

Since / is normally used to start regular expressions, and you want to match on /, I'd not use / and use, say #:

#^/([a-zA-Z0-9_]+/)*#

That says:

must start with /
then one or more sequence of letters, digits, or underscore, followed by a trailing /
above line repeated 0 or more times

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
technocrat
Life Cycles Becoming CPU Cycles



Joined: Jul 07, 2005
Posts: 511

PostPosted: Mon Jul 14, 2008 9:14 am Reply with quote

You might find this to be helpful: [ Only registered users can see links on this board! Get registered or login! ]

_________________
Nuke-Evolution
phpBB-Evolution / phpBB-Evolution Blog 
View user's profile Send private message
testy1







PostPosted: Mon Jul 14, 2008 4:12 pm Reply with quote

thanks guys fro the response, that site is excellent techno
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©