Escaping question mark in AWK
<p>I want to do something as simple as:</p>

<pre><code>myregex = "A\?B"
</code></pre>

<p>or</p>

<pre><code>  if (match($O, "A\?B")) print "YES"
  else print "NO"
</code></pre>

<p>In the first example, I am getting this:</p>

<pre><code>warning: escape sequence '\?' treated as plain '?'
</code></pre>

<p>In the second example, it simply doesn't match the corresponding lines.</p>

<p>I am using GAWK 3.1.6 on Windows - got it from gnuwin32 package</p>