Skip to content

More regular expression rules: doesn't match, contains, doesn't contain, long answers #4035

Description

@AndyScherzinger

Nextcloud (please complete the following information):

  • Nextcloud-Version: 35 (current main)
  • Forms-Version: 5.5.0-dev

Is your feature request related to a problem? Please describe.
A short answer can require that the answer matches a custom regular expression. There is no way to reject answers matching a pattern, to require or forbid a pattern somewhere inside the answer, or to use a regular expression on a long answer.

Describe the solution you'd like
More regular expression rules:

  • Doesn't match: reject answers matching the expression.
  • Contains / Doesn't contain: require or forbid a match anywhere in the answer.
  • The same rules on long answers.

Google Forms offers all four regular expression rules (contains, doesn't contain, matches, doesn't match) on short answer and paragraph questions (Set rules for your form). Microsoft Forms has no regular expression rules.

Describe alternatives you've considered
Writing negative lookaheads in a matches expression, which few form owners can do. #4032 adds must contain / must not contain for plain text, which covers fixed words but not patterns.

Additional context
Out of scope of #4032 (answer rules, ref #3076). This issue collects feedback on whether these rules are needed: please 👍 it or comment with your use case.

Assisted by ClaudeCode:claude-opus-5-5

Activity

  1. added
    enhancement
    0. Needs triage
    on Nov 26, 2026
  2. added this to the Maybe someday milestone on Nov 26, 2026
  3. added
    1. to develop
    and removed
    0. Needs triage
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAI assistedenhancementfeature: 📑 form creationfeedback-requested

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions