In a mud I'm playing, there's an elevator that I use all the time. The syntax is 'press button <#>' where <#> is an integer from 0 to 6. I'm trying to set up an alias so all I have to do is type 'p<#>'. However, I only want it to trigger if the wildcard is an integer from 0-6. All I was able to figure out was:
For this alias, it wasn't that bad. But what I'm worried about is when I want to have a range of integers that is something like 0-500. Is there a way I can use a range of integers to mimic this?
^p(0|1|2|3|4|5|6)$
press button %1