It would be useful for me to be able to specify custom regular expressions for path filtering, rather than the existing functionality which just replaces certain special characters with _.
For example, I would like to strip certain characters such as ?s, while replacing " with ', etc.
configparser doesn't really support something like arrays, but one could do multiple lines so long as they are indented, so a config could look something like:
path_filter_regex =
s/\?//g
s/"/'/g
or similar.
Thoughts?
It would be useful for me to be able to specify custom regular expressions for path filtering, rather than the existing functionality which just replaces certain special characters with
_.For example, I would like to strip certain characters such as
?s, while replacing"with', etc.configparserdoesn't really support something like arrays, but one could do multiple lines so long as they are indented, so a config could look something like:or similar.
Thoughts?