Bixby Developer Center

References

regex

optionalvalue required

Checks if the text passed matches a defined regular expression. Pass the value as a string in quotes to have the expression evaluated.

Example

pattern {
regex ("\\d{5}") {
on-error ("That won't work")
}
}

Child Keys

numeric-keypad-enabled
optional
If set to true, enables the numeric keypad on devices with screens to allow users to provide numbers
on-error
optional
Error message to display if the text inputted by user does not match the expected pattern