View Single Post
Old 09-21-2019, 01:03 PM   #31
baskerville
Addict
baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.baskerville ought to be getting tired of karma fortunes by now.
 
baskerville's Avatar
 
Posts: 251
Karma: 304054
Join Date: Aug 2015
Device: Kobo Glo HD, Kobo Aura ONE
Quote:
Originally Posted by NiLuJe View Post
@baskerville: Yep, I should have made that clearer. Would your example work, given the "sandwich", or would that need some trickery like @frostschutz did?
I don't know, I didn't get @frostschutz trickery.

EDIT: I understand @frostschutz hack now: the sandwiched regexp matches any path with a hidden directory/file. I prefer not to play with fire here and just cooperate with the sandwich. I've tested my regexp and it seems to work fine.

Quote:
Originally Posted by NiLuJe View Post
EDIT: If I put my brain in "regexp mode", I think it looks fine for that purpose, but I haven't tested it . (i.e., accepts zero or more "classic" directories in front of an hidden one).
Yes.

Quote:
Originally Posted by NiLuJe View Post
EDITē: The first group might fail to match for a single-character folder name, though, right?
Oops, fixed in the original post.

Last edited by baskerville; 09-22-2019 at 06:01 AM.
baskerville is offline   Reply With Quote