<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[FunctionList.xml   how to ignore wrong syntax.]]></title><description><![CDATA[<p dir="auto">i’ve been making new parser for my logfile.<br />
but i couldn’t find out a way how to ignore wrong syntax.</p>
<p dir="auto">for example,</p>
<p dir="auto">[SECTION] part1 {<br />
SECTION 2018-03-22 THU 13:14:23<br />
BLA BLA 1234 : DENY<br />
　		logloglog</p>
<p dir="auto">}</p>
<p dir="auto">[SECTION] part2 {<br />
SECTION 2018-03-22 THU 13:16:23<br />
BLA BLA 1234 : COMPLD<br />
　		logloglog<br />
}</p>
<p dir="auto">[SECTION] part3 {<br />
　		logloglog<br />
SECTION 2018-03-22 THU 13:18:23<br />
BLA BLA 1234 : DENY<br />
　		logloglog</p>
<p dir="auto">}</p>
<p dir="auto">[SECTION] part4 {<br />
SECTION 2018-03-22 THU 13:20:23<br />
}</p>
<p dir="auto">[SECTION] part5 {<br />
}</p>
<p dir="auto">[SECTION] part6 {<br />
　		logloglog<br />
SECTION 2018-03-22 THU 13:25:23<br />
BLA BLA 1234 : COMPLD<br />
　		logloglog<br />
}</p>
<p dir="auto">[SECTION] part7 {</p>
<pre><code>SECTION 2018-03-22 THU 13:30:23
BLA BLA 1234 : COMPLD
</code></pre>
<p dir="auto">}</p>
<p dir="auto">i wand to match part2, part6,part7 by RE.<br />
(i use prompt name(=SECTION) and date,time and ‘COMPLD’ word.)</p>
<p dir="auto">i tested RE at <a href="https://regex101.com/" rel="nofollow ugc">https://regex101.com/</a></p>
<p dir="auto">(?x)<br />
(?ms)<br />
^(?:[(.+)]\s+) part[0-9]+\s{<br />
\s+<br />
.<em>?　　　　　　　　　　　　　　　　　　　　　　　# after founding out issue about part6. i added here<br />
(?:\1)\s+[0-9]{4}-[0-9]{2}-[0-9]{2}\s+(?:SUN|MON|TUE|WED|THU|FRI|SAT)\s+[0-9]{2}:[0-9]{2}:[0-9]{2}<br />
\s+<br />
[A-Z0-9]</em>\s+:\s+COMPLD<br />
.*?　　　　　　　　　　　　　　　　　　　　　　　# after founding out issue about part6. i added here<br />
\s+<br />
}</p>
<p dir="auto">but, i had a problem with ‘part6’.<br />
so i added ‘.*?’ in the middle.</p>
<p dir="auto">however,  i think ‘.*?’ is not correct RE</p>
<p dir="auto">please, help me to solve this issue.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15454/functionlist-xml-how-to-ignore-wrong-syntax</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:18:21 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15454.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Mar 2018 07:36:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FunctionList.xml   how to ignore wrong syntax. on Fri, 23 Mar 2018 04:17:07 GMT]]></title><description><![CDATA[<p dir="auto">thanks for your help.<br />
i works well~ :)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/31127</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31127</guid><dc:creator><![CDATA[Shin Jaeyong]]></dc:creator><pubDate>Fri, 23 Mar 2018 04:17:07 GMT</pubDate></item><item><title><![CDATA[Reply to FunctionList.xml   how to ignore wrong syntax. on Thu, 22 Mar 2018 14:47:20 GMT]]></title><description><![CDATA[<p dir="auto">Try this:</p>
<pre><code class="language-xml">(?x)
(?ms)
^\[(\w+)\]\s+part\d+\s+\{
[^}]*?
\1\s+\d{4}-\d{2}-\d{2}\s+(?:SUN|MON|TUE|WED|THU|FRI|SAT)\s+\d{2}:\d{2}:\d{2}
[^:]+?\s+:\s+COMPLD
[^}]*?
\}
</code></pre>
]]></description><link>https://community.notepad-plus-plus.org/post/31111</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/31111</guid><dc:creator><![CDATA[MAPJe71]]></dc:creator><pubDate>Thu, 22 Mar 2018 14:47:20 GMT</pubDate></item></channel></rss>