How to replace last two characters?
Posted: 17 Apr 2024 07:58
Good morning!
I'm new here, and although I've been able to get by on my own so far, there's something that's resisting me. Using RegExp, how can I replace the last two characters of a file as well as the first two? I give an example:
Original:
Z8264519300.psd
How I want it to look:
Z8264519399.psd
As you can see, it would be changing the two 0's for two 9's.
Also, if I wanted to change the Z8 for a P7, how would you do it?
Thank you very much in advance. Have a great day guys.
I'm new here, and although I've been able to get by on my own so far, there's something that's resisting me. Using RegExp, how can I replace the last two characters of a file as well as the first two? I give an example:
Original:
Z8264519300.psd
How I want it to look:
Z8264519399.psd
As you can see, it would be changing the two 0's for two 9's.
Also, if I wanted to change the Z8 for a P7, how would you do it?
Thank you very much in advance. Have a great day guys.