View Single Post
Old 08-23-2010, 02:49 PM   #5
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,704
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Starson17 View Post
Charles - are you sure about this? I thought we couldn't get the path when parsing with the regex during Add.
Nope, wasn't sure about it. I took the easy way out and just used the tester. You are absolutely right. The code uses only the last component of a path, so the regexp won't work in anger.

The OP could use the regexp by doing a bulk rename of a/b/c to a/b - c, but that has its own complexities.
chaley is offline   Reply With Quote