Notepad++
- Edit-Line Operations-Join Lines
- What you would expect (remove line breaks)
- Search and replace with regular experssions
- Search:
^(.*?)A;Find the first 'A' - Replace:
\1B;Replace the 'A' with 'B' leave all in front if it untouched.
^(.*?)A ;Find the first 'A'\1B ;Replace the 'A' with 'B' leave all in front if it untouched.