Within my string of logs, I have the following:
rgb(255, 255, 255) 0px 0px 0px 16px inset
I am interested in extracting the dynamic value, which in this case is 16. How can I create a regex pattern that will capture the last instance of px
, and then retrieve the digits between px
and the space?