Hello, @michael-gomez, @coises, @thomas-knoefel and All,
As @coises said, you could achieve your goal with the buit-in regular expression engine of Notpead++ !
So, from your INPUT text :
Warsongs rolls 206 Tykee rolls 206 Shadowhunter rolls 798 Ravencauthon rolls 229 Omgwtflolroflgg rolls 479 Nephlite rolls 576 Groverton rolls 943 Blodhgram rolls 829 Azria rolls 675 Antonioklaus rolls 720Using the following regex S/R :
FIND (?-s)^.+?(\d+)
REPLACE \1 $0!
=> You should get this temporary text :
206 Warsongs rolls 206! 206 Tykee rolls 206! 798 Shadowhunter rolls 798! 229 Ravencauthon rolls 229! 479 Omgwtflolroflgg rolls 479! 576 Nephlite rolls 576! 943 Groverton rolls 943! 829 Blodhgram rolls 829! 675 Azria rolls 675! 720 Antonioklaus rolls 720!Then using the menu command :
Edit > Line operations > Sort Lines Lexicographically Descending ( Should be better sorted than using the Sort Lines As Integers Descending ! )
You would be left with that temporary text :
943 Groverton rolls 943! 829 Blodhgram rolls 829! 798 Shadowhunter rolls 798! 720 Antonioklaus rolls 720! 675 Azria rolls 675! 576 Nephlite rolls 576! 479 Omgwtflolroflgg rolls 479! 229 Ravencauthon rolls 229! 206 Warsongs rolls 206! 206 Tykee rolls 206!And, finally, with the last regex S/R, below :
FIND ^\d+\x20
REPLACE Leave EMPTY
Here is you expected OUTPUT text :
Groverton rolls 943! Blodhgram rolls 829! Shadowhunter rolls 798! Antonioklaus rolls 720! Azria rolls 675! Nephlite rolls 576! Omgwtflolroflgg rolls 479! Ravencauthon rolls 229! Warsongs rolls 206! Tykee rolls 206!But, indeed, as @coises mentionned it, the two records with the same integer part 206 are inverted !
Best Regards,
guy038