diff -r 9eed155411f0 -r 4a1db75550bd eric6/HexEdit/HexEditGotoWidget.py --- a/eric6/HexEdit/HexEditGotoWidget.py Sat Oct 10 16:03:53 2020 +0200 +++ b/eric6/HexEdit/HexEditGotoWidget.py Sun Oct 11 17:54:52 2020 +0200 @@ -8,8 +8,8 @@ """ -from PyQt5.QtCore import pyqtSlot, Qt, QRegExp -from PyQt5.QtGui import QRegExpValidator +from PyQt5.QtCore import pyqtSlot, Qt, QRegularExpression +from PyQt5.QtGui import QRegularExpressionValidator from PyQt5.QtWidgets import QWidget from .Ui_HexEditGotoWidget import Ui_HexEditGotoWidget @@ -38,8 +38,10 @@ # keep this in sync with the logic in on_gotoButton_clicked() self.__formatAndValidators = { - "hex": (self.tr("Hex"), QRegExpValidator((QRegExp("[0-9a-f:]*")))), - "dec": (self.tr("Dec"), QRegExpValidator((QRegExp("[0-9]*")))), + "hex": (self.tr("Hex"), QRegularExpressionValidator( + QRegularExpression("[0-9a-f:]*"))), + "dec": (self.tr("Dec"), QRegularExpressionValidator( + QRegularExpression("[0-9]*"))), } formatOrder = ["hex", "dec"]