<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Klaus Herberth</title>
    <description>The latest articles on DEV Community by Klaus Herberth (@sualko).</description>
    <link>https://dev.to/sualko</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F49512%2F68373be3-d092-4751-9412-115520382576.jpeg</url>
      <title>DEV Community: Klaus Herberth</title>
      <link>https://dev.to/sualko</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sualko"/>
    <language>en</language>
    <item>
      <title>Fun with Javascript!</title>
      <dc:creator>Klaus Herberth</dc:creator>
      <pubDate>Sun, 10 Jan 2021 17:39:12 +0000</pubDate>
      <link>https://dev.to/sualko/fun-with-javascript-29l3</link>
      <guid>https://dev.to/sualko/fun-with-javascript-29l3</guid>
      <description>&lt;p&gt;Even after years of experience with Javascript there are new surprises around every corner.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const regex = /foo/g;

if (regex.test('foo bar') &amp;amp;&amp;amp; regex.test('foo car'))
  console.log('🎉');
else
  console.log('🙃');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What do think is the result? You find the explanation in the &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/test#using_test_on_a_regex_with_the_global_flag"&gt;MDN documentation&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>fun</category>
      <category>regex</category>
    </item>
  </channel>
</rss>
