Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Teach me almighty one liner
Anyone knows what this part is doing "${COST_B%.*} + 1" ?
needed to use use groups in the replacement
yeah for replacing matched groups we need parantheses
check this out for more info
https://stackoverflow.com/questions/37734164/regex-backreferences-in-java
last two replaceAll calls can be condensed into replaceAll("^-|-$","").
what are the parentheses for in the first replaceAll? Seems like without them it won't work.
Does it have to be there to refer the first group for the dollar sign?