There is a string like:
NAME=ИМЯ,SURNAME=ФАМИЛИЯ,PATRONYMIC=ОТЧЕСТВО, IIN=123456789012, COUNTRY=СТРАНА,CITY=ГОРОД, EMAIL=ИМЯ@MAIL.RU You need to search for the word COUNTRY or ( NAME, SURNAME, CITY, EMAIL ). If there is such a word, then immediately cut this word to a comma, that is, IIN=123456789012
How can you make it easier on one or not more than two lines?