Registered Member
|
Non greedy regular expression like "\<.*?\>" not work in Qt4, but class QRegExp have method called setMinimal().
This method tell QRegExp to use non-greedy "operators". "\<.*?\>" still is not valid, but "\<.*\>" works like "\<.*?\>". My idea is simple, just add "non-greedy" checkbox. if checkbox is checked, RegExp.isMinimal() = true if checkbox is not checked, RegExp.isMinimal() = false mockup |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]