localeRegex property

RegExp localeRegex
getter/setter pair

Finds the parts of the locale. It must start with an underscore.

Implementation

static RegExp localeRegex =
    RegExp(r'^((\w+)_)?([a-z]{2})([-_]([a-zA-Z]{2}))?$');