JSFiddle - React, Tailwind, and code Playground

JavaScript

let str = 'Body: "This is the body, where you can find lots of special characters. Hello, "this" is my search string without the correct punctdsuation."'

let re = /[^\w\d\s]/g;

while ((match = re.exec(str)) != null) 
{
    console.log("match found at " + match.index);
}