Regex – Notepad++ regex replace

notepadregex

I have text file full of following lines:

F randomtext
F morerandomtext

what kind of regex I need so that the output would be like this:

randomtext,foo
morerandomtext,foo

so the F becomes foo and moves to the end of line.

Thanks

Best Answer

Find:

F (.*)

Replace all with:

\1,foo