I have strings that have random option name list, and I would like to extract only one option COLOR="" between the comma & " ". These options sometimes include different language letter so It must extract english only.
Here we have four examples of the string.
- COLOR="WHITE 화이트", DETAIL="NONE"
- SLEEVE="SHORT 쇼트", COLOR="BLUE"
- SLEEVE="LONG", COLOR="GRAY", TOP="DOUBLE"
- COLOR="YELLOW 노랑"
=>>>> I would like to see >>>>
- COLOR="WHITE"
- COLOR="BLUE"
- COLOR="GRAY"
- COLOR="YELLOW"
I tried regex extract
"COLOR=[a-zA-Z]+.*[a-zA-Z]+")
but obviously it includes after comma as well. something with '*,' was recommended but do not know how to combine these..
Thanks for the help in advanced!