MiN8T All Insights

On This Page

  1. What are Helpers?
  2. Modifier (Regex Pattern)
  3. Replacement
  4. Format & Separator
  5. Next Steps
Guide5 min read

Smart Element Helpers: Expression and Format Fields

M
MiN8T Team
Email Engineering
April 12, 2026

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

  • Extract price from text: Source text is "Price: $29.99 USD". Modifier: (\d+\.\d{2}). Result: 29.99.
  • Extract first word: Source text is "Samsung Galaxy Note 10". Modifier: ^(\S+). Result: Samsung.
  • Strip prefix: Source text is "SKU: ABC-123". Modifier: SKU:\s*(.*). Result: ABC-123.

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.

  • Use first capture group: Replacement: $1 (most common)
  • Reformat with text: Modifier: (\d+)\.(\d+), Replacement: $1 dollars and $2 cents
  • Wrap in HTML: Replacement: <strong>$1</strong>

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

4 Format & Separator

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

  • Format, a number format pattern (e.g., #,##0.00 for two decimal places with thousands grouping)
  • Separator, the character used for thousands separation (e.g., , for US format, . for European)

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

  • What are Smart Elements?, the full Smart Elements guide with OG tags and CSS selectors
  • What are Data Sources?, alternative to CSS selectors for structured data

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

Ready to start?

Stay up to date - the latest on email design and deliverability.

Let's get you building. Start your free account today.

MiN8T

108+ ESP integrations. Built-in deliverability. AI-powered design. Try MiN8T free today.

MiN8T

The email marketing operations platform.
Replace Stripo, ZeroBounce, BeeFree, Litmus,
and 4 more tools.
Inbox guaranteed across 108+ ESPs.

Product

  • API
  • Pricing
  • Integrations
  • How it works
  • Testimonials

Resources

  • Blog
  • Insights & Guides
  • Documentation
  • API Reference
  • DeliverIQ Docs
  • Deliverability Guide

Company

  • Contact
  • Support
  • Talk to Sales

Legal

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA
© 2026 MiN8T. All rights reserved. Powered by ABLA.
Trusted by 1,000+ teams 108+ ESP Integrations SOC 2 Compliant GDPR Ready