View Single Post
Old 01-25-2021, 10:15 AM   #501
DevonHess
Can't actually read
DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.DevonHess ought to be getting tired of karma fortunes by now.
 
DevonHess's Avatar
 
Posts: 81
Karma: 335656
Join Date: Sep 2019
Device: Kobo Forma, Kobo Sage, Kindle PW2
Quote:
Originally Posted by trcm View Post
The backslashes need to be escaped before the regex is evaluated, in this case. So those are all actually just escaped dot characters.

Here's the regex actually being used
Code:
^/mnt/(sd|onboard)/(\.(?!kobo|adobe).+|([^.][^/]*/)+\..+)$
Quote:
Originally Posted by NiLuJe View Post
The thing to remember is that this is sandwiched inside a
Code:
^/mnt/(sd|onboard)/%1$
so, can't use ^ or $, and that QSettings probably wants some stuff escaped, hence \\. for \. (i.e., match a dot, instead of any character)

Last edited by DevonHess; 01-25-2021 at 10:22 AM.
DevonHess is offline   Reply With Quote