title: go test regex type or syntax
body: <p>What type or syntax of regex is used when running <code>go test -r &lt;regex&gt;</code> commands? I'm using <code>-list</code> to find the tests I want to run before using <code>-r</code>, like this:</p>
  
  <pre><code>go test -list 'Foo' *.go
  </code></pre>
  
  <p>I'm having specific difficulty with the following two test names:</p>
  
  <pre><code>func TestSendTrap(...
  func TestSendTrapFull(...
  </code></pre>
  
  <p>This works:</p>
  
  <pre><code>go test -list 'TestSendTrap\b' *.go
  </code></pre>
  
  <p>So I'm presuming <a href="https://www.debuggex.com/cheatsheet/regex/pcre" rel="nofollow noreferrer">PCRE syntax</a> is being used, but <a href="https://golang.org/cmd/go/" rel="nofollow noreferrer">command go</a> doesn't detail.</p>