Grooper Help - Version 25.0
25.0.0017 2,127
  • Overview
  • Help Status

Wrap Rule

Regular Expression Grooper.Messaging

Matches a text pattern in the HTML text nodes

Remarks

A Wrap Rule allows you to highlight, annotate, or segment text content in HTML documents by wrapping matches of a regular expression in a specified tag.

This is commonly used to:

  • Emphasize keywords or phrases (e.g., wrapping "Important" in a <mark> tag)
  • Annotate entities for downstream extraction or search
  • Structure content for improved retrieval in RAG/LLM scenarios

You can configure the tag name, attributes, and whether matches are wrapped in-place or split out as siblings.

Example:
To highlight the word "Important" in all text nodes, set:

  • 'Pattern' = "Important"
  • 'TagName' = "mark"
  • 'Attributes' = ""

This will replace "Important" with <mark>Important</mark> throughout the HTML.

Properties

NameTypeDescription

Used By

Notification