Increment numbers (preceded by a letter) by 1 in a given range
Say I have this sequence of letters and numbers:
A200, B45, C38, D400, B800, C44, B304, D2000, B1101, C22, A1234, D420, B2022, C200, B995, A1020.
B4200, C34, B1024, D40.
D200, B11, B975.
I would need to increment by 1 any numbers preceded by the letter B in the --say-- 800-1200 range, as in (in bold type the numbers that were changed):
A200, B45, C38, D400, B801, C44, B304, D2000, B1102, C22, A1234, D420, B2022, C200, B996, A1020.
B4200, C34, B1025, D40.
D200, B11, B976.
Numbers are always preceded by a capital letter. Numbers are always followed by a comma, except for the last number, which is followed by a period. Is this doable?
This query is somewhat similar to the following thread:
