>>> bits = "Hello awesome, world!".split(/[s,]+/) ["Hello", "awesome", "world!"] >>> bit = bits[bits.length - 1] "world!"