Mention automatic anchors for tag cleanup policies regex fields in the UI
Problem
During the conversations around #466239 (closed), we realized that we didn't knew that \A
and \Z
anchors were automatically added to the input keep and remove regexp patterns for the cleanup policies settings. This behaviour is documented, but also not very visible at the moment (addressing that in !155753 (merged)).
As result, users that are unaware of this may realize that the introduced regexps are not producing the desired results. In the worst case scenario, this may lead to images being deleted when that was not the intention (that's what happened in the linked issue).
Related to #466239 (closed).
Solution
Update the UI to make it clear to users that the input regex patterns are automatically surrounded with \A
and \Z
anchors.
Edited by João Pereira