I've always struggled with understanding regex. Even after trying various tools, I still couldn't grasp it. Can someone please provide me with assistance? I'm working with jquery.
For example, if I have a css text-shadow property like
rgba(0,0,0,0.1) 10px 20px 5px
and a scale ratio of 0.5, how can I calculate each position value by multiplying it with the ratio of 0.5 and return a new string as follows:
rgba(0,0,0,0.1) 5px 10px 2.5px
Furthermore, is it feasible to apply this calculation to text-shadows with multiple values, such as:
rgba(0,0,0,0.1) 15px 12px 5px, rgba(0,0,0,0.1) 25px 30px 6px, rgba(0,0,0,0.1) 5px 15px 25px
I assume one would need to separate them and then replace each value individually?
Any help on this matter would be greatly appreciated.
Thank you.