We are using TextFragmentAbsorber to find and redact text in a PDF. The redactions are marked with square brackets like [Reason], and the logic does the following:
Finds all fragments matching regex: \[(?s)(.*?)\]
Upda…...Append(c); } fragment.Text = sb.ToString();...