Scraping a UPC from within HTML code

What would be the best way to scrape the UPC from the source code? It is within a script tag and I just can't figure out how to access it via the scraper. The UPC can always be found by viewing the page source.

For reference, trying to grab the upc from a product page such as this: https://www.homedepot.com/p/Hugger-52-in-LED-Indoor-Black-Ceiling-Fan-with-Light-Kit-AL383LED-BK/301162049

I can't access that page... send me a screenshot of source code where the UPC can be found.

It is within this script tag, which is in the body tag

Hi, you will have to scrape the full script with a text selector, like: script:contains('upc')

Since regex is no longer available in the Chrome extension, you will have to extract the UPC in the post-processing of the data output.

I can help you with RegEx