Regex Autocorrect
Our system is build in such a way, so that the input regex must match the complete filename, start to end in order to be returned.
Most people expect that if their regex matches partially in a filename this will be returned. Because not all users are advanced, we try to autocorrect the regular expressions, so that most results are returned.
We have choose, when we autocorrect the regular expression to leave the change is visible to the user, so that advanced users can see the change and adjust.
The rules are:
-
When the regex does not start with
.*
or ^
(=start of string) we add .*
.
-
When the regex does not end with
.*
or $
(=end of string) we add .*
.
If you do not want the system to auto-correct the regular expression, you can use ^ and $, or check the "Do not autocorrect regex" option.