1. Regex style: new match(input, options);
or built in function match(foo, bar);
or like switch match (foo){ cases
}
But, to have the switch statement syntax and return a value seems like a less than good way to implement this.
1. Regex style: new match(input, options);
or built in function match(foo, bar);
or like switch match (foo){ cases
}
But, to have the switch statement syntax and return a value seems like a less than good way to implement this.