@startuml
'figure 6: Dice_Pattern regex'
skinparam monochrome true
skinparam handwritten false
skinparam shadowing false
skinparam classAttributeIconSize 0
hide class circle
hide abstract circle

state "Group <n>" as group_n {
    state "\d" as n_digit
    n_digit --> n_digit
}
state "Group <d>" as group_d {
    state "\d" as d_digit
    d_digit --> d_digit

}
state "Group <a>" as group_a {
    state "[dk+-]" as a_option
    state "\d" as a_digit
    a_option --> a_digit
    a_digit --> a_digit
}

[*] -right-> group_n
group_n -right-> d
[*] -right-> d

d -right-> group_d

group_d -right-> [*]
group_d -right-> group_a

group_a -left-> group_a
group_a -right-> [*]

@enduml
