--- a/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py Fri Nov 01 15:48:48 2013 +0100 +++ b/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py Sun Nov 03 15:58:22 2013 +0100 @@ -19,7 +19,7 @@ class QRegularExpressionWizardCharactersDialog( - QDialog, Ui_QRegularExpressionWizardCharactersDialog): + QDialog, Ui_QRegularExpressionWizardCharactersDialog): """ Class implementing a dialog for entering character classes. """ @@ -592,8 +592,8 @@ self.__formatCharacter(char2, format)) if regexp: - if (regexp.startswith("\\") and \ - regexp.count("\\") == 1 and \ + if (regexp.startswith("\\") and + regexp.count("\\") == 1 and "-" not in regexp) or \ len(regexp) == 1: return regexp