I am trying to get the count of occurrences of a string in the text fetched from a website
var html = UrlFetchApp.fetch('https://www.larvalabs.com/cryptopunks/details/0000').getContentText();
var offers = html.match('Offered');
Logger.log(offers);
However I get the following data returned: [Offered] I tried several methods but I do not find much documentation on those I can use to do this task that sounds simple. I add that I tried to parse with XMLservice but some errors in the HTML code makes it fail.