My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

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>