MiN8T All Insights

Smart Element Helpers: Expression and Format Fields

M
MiN8T Team
Email Engineering

1 What are Helpers?

When using CSS Selectors to extract data from web pages, the raw extracted text may not be exactly what you need. Helpers are optional transforms you can attach to each variable to clean up, extract, or reformat data before it's applied to your email.

Each variable in the CSS selector configuration has four optional helper fields:

HelperPurpose
ModifierRegex pattern to extract a substring
ReplacementThe replacement string (uses capture groups)
FormatNumber format pattern
SeparatorThousands separator character for numbers
i

Helpers are an advanced feature. Most users don't need them — OG tag extraction and auto-mapping work without any transforms. Use helpers when source page data is messy or needs reformatting.

2 Modifier (Regex Pattern)

The modifier is a regular expression pattern applied to the extracted text. It lets you extract a specific part of a longer string.

Examples

The modifier uses JavaScript regex syntax. Capture groups (()) define what to keep.

3 Replacement

The replacement string specifies what to output after the regex match. Use $1, $2, etc. to reference capture groups.

If no replacement is specified, the full match is used.

4 Format & Separator

For numeric values, the format and separator helpers control number display:

Example

Extracted value: 1499.9. Format: #,##0.00. Separator: ,. Result: 1,499.90.

Format and separator are most useful for price data extracted from e-commerce pages where the source format may not match your email's locale or style.

5 Next Steps

Last updated: April 2026. All details verified against MiN8T's actual codebase implementation.