Skip to content

[Needs confirmation][Tool #43] Regex Generator default Email sample produces zero matches with Anchored enabled #379

Description

@baixiangcpp

Summary

The default Email configuration combines an anchored pattern with a sample containing two email addresses separated by a space. The generated pattern therefore matches zero samples immediately after generation.

Affected tool: Regex Generator
Route: https://byteflow.tools/en/regex-generator
Status: Needs product confirmation, but the default state is inconsistent during browser acceptance.
Observed: 2026-08-18

Reproduction

  1. Open the affected route.
  2. Select the Email preset.
  3. Leave Anchored and Global enabled.
  4. Use the default sample:
team@byteflow.tools support@example.org
  1. Generate or inspect the default generated regex and sample preview.

Actual output

The generated pattern is anchored to the entire input, while the sample contains two email addresses separated by a space. The preview reports:

Sample matches (0)
No matches

The same generator matches one item when the sample is changed to a single email address. When Anchored is disabled, the two addresses can be matched separately.

Expected output

The default preset should start in a self-consistent state. At least one of these should be true:

  • the default sample contains one email when Anchored is enabled;
  • Anchored is disabled for a sample containing multiple addresses;
  • the UI explains that an anchored email pattern expects one complete input.

The default preset should not present a successful generated configuration with zero sample matches unless that is intentional and clearly explained.

Impact

The first view of the tool looks broken and makes it unclear whether the Email preset or the sample input is wrong.

Regression coverage

Verify every preset's default controls, generated pattern, sample text, and preview count. Ensure the initial state produces an intentional and understandable result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions