title: Fetch data from url if condition is meet
body: <p>Is it possible to adjust this code to "get result and save file" only if text at fetched url contains defined text. e.g. "12345" or text "abc is X" where X is number >5
  Note: I need to check both expressions ("12345" and "abc is X") and save file if any of them is meet</p>
  
  <pre><code>function fetchData() {
      var exportUrl = RESOURCE_URL;
      var response = UrlFetchApp.fetch(exportUrl);
      var htmlBody = response.getContentText();
      var blob = Utilities.newBlob(htmlBody, 'text/html').getAs('application/pdf').setName(FILE_NAME);
      return folder.createFile(blob);
  }
  </code></pre>