I need a regex pattern(s) that will match on words before a colon and also values between 2 characters. Here's the example, I have a string:
str='`width: 1070px; padding: 0px 10px 0px 10px; height: auto; margin:0px auto 0px auto;`'
from a stylesheet, I need one array to store the property only (the text before a colon),
(prptyArray[0]='width', prptyArray[1]='padding')
and another to store the value only (the text between 2 characters)
(valueArray[0]='1070px', valueArray[1]='0px 10px 0px 10px')
Thanks in advance.