You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
More regular expression rules: doesn't match, contains, doesn't contain, long answers #4035
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.
Activity