Pascal Peters wrote: > You can do it with a single regexp if you want: > > "(^|[/\\])\s*\.+\s*($|[/\\])" > > I am assuming that for the last one, you actually wanted "\.+$". > If you really wanted "\.+", you can just drop the first three. > I also added \s* to make sure there wasn't a dot and a space, because I > didn't know how you treated it later.
Actually, the last one should've been "^\.+$" I was trying to match . and .. (and technically ..., ...., etc) I think I'm gonna leave it as the separate regex's for now... they're hard enough to read as it is :) - Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186631 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

