Toll free pattern matching

I’m implementing the dial plan for toll free support. Can someone tells me the pattern matching for toll free so I can insert into the dial plan?

Seems like there’s no
1[800|888|877]NXXXXXX does not work
and I could not find any ways to implement 2 same numbers after the 8 by
18(n){2}NXXXXXXX

Thanks in advance

Why now just
exten => _1800XXXXXXX
exten => _1866XXXXXXX
exten => _1877XXXXXXX
exten => _1888XXXXXXX

Its a bit harder but I think it’s the only real way to do it.