# Regex repeat match ## Function Explain repeated quantifiers such as ?, *, +, {n,m}. ## Syntax ```bt regex(pattern, flags) ``` ## Parameters | Parameters | Type | Required | Default value | Description | | ------ | ------ | ------ | ------ | ------ | | pattern | String | No | '' | Regular body containing repeated quantifiers. | | flags | String | No | '' | Regular flags. | ## Return value | Type | Description | | ------ | ------ | | Regex | Returns a Regex object. | ## Example ```bt rule = regex('^[0-9]{2,4}$', '') result = rule.test('2026') // Output: true print result ``` ## Notes - Repeating quantifiers act on the previous atom, character class, or group.