# Regex Unicode support ## Function Explain the Unicode matching capabilities of Rust regex. ## Syntax ```bt regex(pattern, flags) ``` ## Parameters | Parameters | Type | Required | Default value | Description | | ------ | ------ | ------ | ------ | ------ | | pattern | String | No | '' | Can be escaped using Unicode characters or Unicode classes. | | flags | String | No | '' | Regular flags. | ## Return value | Type | Description | | ------ | ------ | | Regex | Returns a Regex object. | ## Example ```bt rule = regex('Language', '') result = rule.test('BT Language') // Output: true print result ``` ## Notes - BT strings are saved in UTF-8, and regular expressions can directly match Unicode text.