--- a/eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Wed Jun 09 17:13:01 2021 +0200 +++ b/eric7/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Wed Jun 09 17:48:02 2021 +0200 @@ -639,7 +639,7 @@ os.linesep, i1string, regexp.replace('"', '\\"')) if flags: code += ',{0}{1}{2}'.format(os.linesep, i1string, flags) - code += '){0}'.format(estring) + code += '{0}){0}'.format(estring) return code