I still don't understand how to use RegEx in AutoHotkey, and need help, please.
I wanna copy numbers like this: 21001/2020 (xxxx/year)
and past this: 21002/2020
and when I copy 21002/2020
i want to paste: 21003/2020
So, I need always "plus one" to the sequence (21001+1; 21002+1, etc), keeping the year the same,
In my example, i will already get in clipboard a number, for example, 22333/2020
when i paste, it needs to be pasted 22334/2020
Code: Select all
RegExMatch(clipboard,"I don't Know How to Worh with RegEx",Number)
NewNumber:=Number1+1
OldNumber:=NewNumber-1
Clipboard:=RegExReplace(clipboard, OldNumber, NewNumber)
Sleep 100
Send ^v
I appreciate any help.