Hehe,

I love how you can use various styles to achieve the same thing. Since we're showing different approaches, here's another one:

Usage: $getnum(string)

alias getnum !.echo -q $regex($$1,/\[(\d+)\]/S) | return $regml(1)


Gone.