637 code += '{0} = re.compile('.format(reVar) |
637 code += '{0} = re.compile('.format(reVar) |
638 code += '{0}{1}r"""{2}"""'.format( |
638 code += '{0}{1}r"""{2}"""'.format( |
639 os.linesep, i1string, regexp.replace('"', '\\"')) |
639 os.linesep, i1string, regexp.replace('"', '\\"')) |
640 if flags: |
640 if flags: |
641 code += ',{0}{1}{2}'.format(os.linesep, i1string, flags) |
641 code += ',{0}{1}{2}'.format(os.linesep, i1string, flags) |
642 code += '){0}'.format(estring) |
642 code += '{0}){0}'.format(estring) |
643 return code |
643 return code |
644 |
644 |
645 |
645 |
646 class PyRegExpWizardDialog(QDialog): |
646 class PyRegExpWizardDialog(QDialog): |
647 """ |
647 """ |