I have some string like below :
"linear-gradient(to bottom,rgba(255,0,0,0.4) 0,rgba(0,230,175,0.4) 100%);"
i want to extract all rgba and rgb from this stirng like rgba(255,0,0,0.4)
and rgba(0,230,175,0.4)
. it try to search and find some question like this and this but that answer doesn't help me.