Bixby Developer Center

Guides
References

regex-pattern

optionalmultiple allowedvalue required

The regex pattern used in qualified primitives. Use a regular expression to determine if a part of a natural language utterance can be recognized as the primitive.

qualified (phone.PhoneNumber) {
description (A string representing a phone number.)
regex-pattern ("\\+?1? ?-? ?((\\(\\d\\d\\d\\))|\\d\\d\\d)? ?-? ?\\d\\d\\d ?-? ?\\d\\d\\d\\d")
}
Note

Don't use regex anchor characters (^ and $) in regular expressions for qualified types. Vocabulary terms are implicitly anchored to the start and end of their matched text.