/\w+/ should work \w matches all "word" characters including letters (upper and lower), numbers, and some punctuation.
Here's a really good beginners guide to regex that I wrote. http://andymatthews.net/read/2009/10/22/A-beginner's-guide-to-regular-expres sions andy -----Original Message----- From: Mik Muller [mailto:[email protected]] Sent: Monday, January 25, 2010 9:01 AM To: cf-talk Subject: regex Can anyone give me a hand with this regex? I know it's very simple. Just don't have time to dig into it. I need something that will take only... /sometext/ /some-other-text/ ...and ignore the following... /sometext.ext?yadda=yadda&etc /images/filename.jpg In other words, the rule only runs if it appears to be a single folder name, and nothing else. Thanks, Mik -------- Michael Muller Admin, MontagueMA.net Website ...a project of MontagueWebWorks.com mobile (413) 320-5336 http://www.MontagueMA.net Eschew Obfuscation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330101 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

