re ("abc" | ["0"-"9"]+)
means this:
/abc|[0-9]+/
(You can put whitespaceses into the literal)
When reinventing the wheel, it's hard to top what other do already pretty well. Also, be warned people have to learn your syntax and this will probably stop them using it.