Objective: to find digits that start at the beginning of a sentence and change the number in place to equal the original number plus 10%.
msg_orginal = """Hello, I am new here.
2,431 other coders are new here too.
Imagine if 2.5 were not new here?
2,428.5 would then be new."""
The output I am seeking is as follows:
msg_revised = """Hello, I am new here.
2,674.1 other coders are new here too.
Imagine if 2.5 were not new here?
2,671.35 would then be new."""
Notice how two of the three sentences have changed the numerical values, but one did not.
EDIT: Keep in mind the same number could appear multiple times in the string. And a new sentence is a sentence that comes either after a full stop (such as a period, exclamation mark, question mark) or that comes after a new line character.