Got a column named ‘sku’ in a table named ‘product’
<%= product.sku %>
…looks like this… ‘1234_56’
These last two chars (56) are an audio Track number.
I ultimately want to display:
Track <%= product.sku %>
I can isolate the first part with /\d+_/ = 1234_
But can’t figure out how to get the last two chars … 56
Can someone point me to a source for that shows how to parse strings
like this in a Rails context?