- Description:
This key defines the flags (e.g. case-insensitive searching) for the regular expression set in
options.pattern.- Appears in:
├── Text Input │ └── options │ └── pattern_flags ├── _inputs │ └── * │ ├── Textarea Input │ │ └── options │ │ └── pattern_flags │ ├── Code Input │ │ └── options │ │ └── pattern_flags │ ├── Color Input │ │ └── options │ │ └── pattern_flags │ ├── Rich Text Input │ │ └── options │ │ └── pattern_flags │ ├── File Input │ │ └── options │ │ └── pattern_flags │ └── Choice Input │ └── options │ └── pattern_flags ├── URL Input │ └── options │ └── pattern_flags └── Select Input └── options └── pattern_flags- Type:
Object- Properties:
This key defines the
sflag -.matches newline characters.Defaults to:
falseAppears in:
pattern_flags.This key defines the
mflag -^and$match the start and end of each line rather than the entire string.Defaults to:
falseAppears in:
pattern_flags.This key defines the
uflag - Pattern is treated as a sequence of Unicode code points.Defaults to:
falseAppears in:
pattern_flags.- Examples:
In this example, we have configured pattern flags for a text input to enable case-insensitive searching.
Copied to clipboard_inputs: search_term: type: text options: pattern: ^[a-z]+$ pattern_flags: ignore_case: true{ "_inputs": { "search_term": { "type": "text", "options": { "pattern": "^[a-z]+$", "pattern_flags": { "ignore_case": true } } } } }