<?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: wataken44</title>
    <description>The latest articles on DEV Community by wataken44 (@wataken44).</description>
    <link>https://dev.to/wataken44</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%2F41576%2Ff0b48336-7a69-46c8-8967-1fb0cd84a212.jpg</url>
      <title>DEV Community: wataken44</title>
      <link>https://dev.to/wataken44</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/wataken44"/>
    <language>en</language>
    <item>
      <title>getting regex in a quick way</title>
      <dc:creator>wataken44</dc:creator>
      <pubDate>Wed, 15 Nov 2017 05:53:45 +0000</pubDate>
      <link>https://dev.to/wataken44/getting-regex-in-a-quick-way-52o</link>
      <guid>https://dev.to/wataken44/getting-regex-in-a-quick-way-52o</guid>
      <description>&lt;p&gt;create snippets&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/usr/bin/env ruby
# -*- coding: utf-8 -*-

# escape.rb

def main()
    ARGV.each do |arg|
        puts(Regexp.escape(arg))
    end
end

if __FILE__ == $0 then
    main()
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;run&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ ./escape.rb "http://www.google.com/"
http://www\.google\.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;:D&lt;/p&gt;

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