Grey, Lee
2011-02-22 17:44:37 UTC
I'd like to do something like this:
def s = 'tracking_level_2'
switch(s) {
case ~/tracking_level_\d/:
assert '2' == ______
}
Is there anything that can fill in the blank above that gives me access to the digit at the end of the Pattern?
Thanks,
Lee Grey
def s = 'tracking_level_2'
switch(s) {
case ~/tracking_level_\d/:
assert '2' == ______
}
Is there anything that can fill in the blank above that gives me access to the digit at the end of the Pattern?
Thanks,
Lee Grey