This question has already been answered:
- How to cut a word to a comma? 3 replies
There is a string like:
CN=袘校袥袗孝袨袙袗 袞袗袧袗袪,SURNAME=袘校袥袗孝袨袙袗,SERIALNUMBER=IIN589658742568, C=KZ,L=袗袥袦袗孝蝎,S=袗袥袦袗孝蝎 袨袘袥蝎小蝎,O="覛袗袥袗 楔袗袪校袗楔蝎袥蝎覓蝎 袘袗小覛袗袪袦袗小蝎" 袦袝袦袥袝袣袝孝孝袉袣 袦袝袣袝袦袝小袉,OU=BIN963258786458,G=袘袝袪袉袣覛蝎袟蝎,E=zhanar_93@MAIL.RU You need to look for the word CN or ( S, L, CITY, SERIALNUMBER ). If there is such a word, then immediately cut this word to a comma, that is, SERIALNUMBER=IIN589658742568
How can you make it easier on one or not more than two lines?