Rename based on certain tag fields incl. regexp

Thank you so much, it's working. Where can I find more information about regular expression? Syntax etc? Can i save this function?