For example I have a column where the characters go something like this
"Object=house colour=blue size=big", "Object=roof colour=red size=small", "Object=window colour=green size=medium"
I want to extract just the word after colour and create a new column. so it would look like this
"blue", "red", "green"
I have started trying to do this with str_extract but am very lost on how to specify things. So far I have
colour<- str_extract(string = df, pattern = "(?<=colour= ).*(?=\\,)")
How would I go about solving this?