snipt

Ctrl+h for KB shortcuts

Ruby

ruby printable test

printableString = stringFromInterface.scan(/[[:print:]]/).join
https://snipt.net/embed/35f6d4b3d294909ff4cac36336005196/
/raw/35f6d4b3d294909ff4cac36336005196/
35f6d4b3d294909ff4cac36336005196
rb
Ruby
2
2019-08-14T22:36:30
True
False
False
/api/public/snipt/40987/
ruby-printable-test
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">printableString</span> <span class="o">=</span> <span class="n">stringFromInterface</span><span class="o">.</span><span class="n">scan</span><span class="p">(</span><span class="sr">/[[:print:]]/</span><span class="p">)</span><span class="o">.</span><span class="n">join</span> </span></pre></div> </td></tr></table>
printable, ruby