How can I use Python regex to make changes to the line before found pattern.
Example text
....................
The pattern I want to fount is ....
....