Andrei Zhamoida Andrei Zhamoida - 1 year ago 62
Javascript Question

How to get base64 code from css rule

I've got a string


I need to invoke only base64 data from it. In output i'd like to see something like this

Could anyone help me with creating a correct RegExp expression?

Thanks in advance.

Answer Source

If you get group 1 from the regex, you will get the base64 data you want.