en.javascript.info/10-regular-expressions-javascript/9-regexp-groups/regexp-nested-groups.svg
2015-03-22 00:36:11 +03:00

49 lines
No EOL
3.9 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="320px" height="130px" viewBox="0 0 320 130" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
<!-- Generator: bin/sketchtool 1.3 (252) - http://www.bohemiancoding.com/sketch -->
<title>regexp-nested-groups.svg</title>
<desc>Created with bin/sketchtool.</desc>
<defs></defs>
<g id="combined" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="regexp-nested-groups.svg" sketch:type="MSArtboardGroup">
<text id="&lt;(([a-z]+)\s*([^&gt;]*)" sketch:type="MSTextLayer" font-family="Consolas" font-size="24" font-weight="normal">
<tspan x="20" y="75" fill="#8A704D">&lt;</tspan>
<tspan x="33.1953125" y="75" fill="#DC2022">((</tspan>
<tspan x="59.5859375" y="75" fill="#8A704D">[a-z]+</tspan>
<tspan x="138.757812" y="75" fill="#DC2022">)</tspan>
<tspan x="151.953125" y="75" fill="#8A704D">\s*</tspan>
<tspan x="191.539062" y="75" fill="#DC2022">(</tspan>
<tspan x="204.734375" y="75" fill="#8A704D">[^&gt;]*</tspan>
<tspan x="270.710938" y="75" fill="#D0011B">))</tspan>
<tspan x="297.101562" y="75" fill="#8A704D">&gt;</tspan>
</text>
<path d="M42.5,45.6458333 L42.5,29.3541667" id="Line" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M290.5,45.6458333 L290.5,29.3541667" id="Line-2" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M42.5,28.5 L290.5,28.5" id="Line" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M52.5,101.645833 L52.5,85.3541667" id="Line-5" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M145.5,101.645833 L145.5,85.3541667" id="Line-4" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M52.5,102.5 L145.5,102.5" id="Line-3" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<text id="1" sketch:type="MSTextLayer" font-family="Consolas" font-size="20" font-weight="normal" fill="#D0011B">
<tspan x="29" y="44">1</tspan>
</text>
<text id="span-class=&quot;my&quot;" sketch:type="MSTextLayer" font-family="Consolas" font-size="20" font-weight="normal" fill="#417505">
<tspan x="82" y="26">span class="my"</tspan>
</text>
<text id="2" sketch:type="MSTextLayer" font-family="Consolas" font-size="20" font-weight="normal" fill="#D0011B">
<tspan x="40" y="101">2</tspan>
</text>
<text id="span" sketch:type="MSTextLayer" font-family="Consolas" font-size="20" font-weight="normal" fill="#417505">
<tspan x="73" y="117">span</tspan>
</text>
<path d="M197.5,101.645833 L197.5,85.3541667" id="Line-8" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M277.5,101.645833 L277.5,85.3541667" id="Line-7" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<path d="M197.5,102.5 L277.5,102.5" id="Line-6" stroke="#D0011B" stroke-linecap="square" sketch:type="MSShapeGroup"></path>
<text id="3" sketch:type="MSTextLayer" font-family="Consolas" font-size="20" font-weight="normal" fill="#D0011B">
<tspan x="185" y="101">3</tspan>
</text>
<text id="class=&quot;my&quot;" sketch:type="MSTextLayer" font-family="Consolas" font-size="20" font-weight="normal" fill="#417505">
<tspan x="185" y="119">class="my"</tspan>
</text>
</g>
</g>
</svg>