- Description:
This key defines the flags (e.g. case-insensitive searching) for the regular expression set in
options.pattern.- Appears in:
└── _inputs └── * ├── Text Input │ └── options │ └── pattern_flags ├── 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 ├── URL Input │ └── options │ └── pattern_flags ├── Select Input │ └── options │ └── pattern_flags └── Choice Input └── options └── pattern_flags- Type:
Object- Properties:
This key defines the
iflag - Case-insensitive.Defaults to:
falseThis key defines the
mflag -^and$match the start and end of each line rather than the entire string.Defaults to:
falseThis key defines the
uflag - Pattern is treated as a sequence of Unicode code points.Defaults to:
falseThis key defines the
vflag for extendedunicodemode.Defaults to:
false- 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 } } } } }