My Feed
Rixbeta
Write
Create Team Blog
Let's kick off a fresh team blog! Bring on the crew and let's get to publishing.

What is the regex for these complex metadata which contain elements, ids, XML and base64?

Gustavo Benedito Costa's photo
Gustavo Benedito Costa
·Sep 29, 2018

Hi,

I would like to search elements to remove Gravit metadata and its base64 (<![CDATA[...==]]>) to optimise the SVG files. Here are:

<gravitDesigner:gravitElementRef xmlns:gravitDesigner="http://ns.gravit.io/" xlink:href="#...."/>
<gravitDesigner:gravitGraphicSource xmlns:gravitDesigner="http://ns.gravit.io/" id="..." version="1">
  <![CDATA[...==]]>
</gravitDesigner:gravitGraphicSource>