I want to reserve all English characters and replace others. When using 're' module, it looks like that:
name = 'srw 959we'
result = sub('/W', '', name)
Then I get name = 'srwwe'
. Now I want to use the class QRegularExpression to realize that, but the official document is so abbreviated that I found nothing useful. It will be appreciated if someone can give a brief and clear example for PyQt.