Skip to main content

$testRegex

Tests if a string matches a regular expression pattern.

Parameters

ParameterDescription
textThe text to test
regexThe regular expression pattern to test
flagsOptional. Flags for the regular expression

Example

<AoiClient>.addCommand({
name: "test-regex",
code: `
$testRegex[Hello, world!;[A-Za-z]+]
`,
});