As kiwidude suggested, simply use the regex to eliminate the by, it's not that hard. And as he also said, adding magic behavior to a widely used function to cater to your special case is not a good idea. Making something like parsing file names state dependant (i.e. dependent on the current state of the library) leads to unexpected and non-replicable behavior and is simply not good design.
|