title: Apps Script findText() for Google Docs
body: <p>I'm applying RegEx search to a <a href="https://docs.google.com/document/d/1cqIESFqzpVD8qCAXT2lE9eErzY61JizCKikAnO1gSPg/edit#" rel="nofollow noreferrer">Google Document</a> text with some markdown code block ticks (```). Running the code below on my doc is returning a null result.</p>
  
  <pre><code>var codeBlockRegEx = '`{3}((?:.*?\s?)*?)`{3}'; // RegEx to find (lazily) all text between triple tick marks (/`/`/`), inclusive of whitespace such as carriage returns, tabs, newlines, etc.
  var reWithCodeBlock = body.findText(codeBlockRegEx); // reWithCodeBlock evaluates to 'null'
  </code></pre>
  
  <p>I suspect that there's some element of regex in my code that is not supported by <a href="https://github.com/google/re2/wiki/Syntax" rel="nofollow noreferrer">RE2</a>, but the documentation has not shed light on this. Any ideas?</p>