I'm trying to solve wordEnds from codingbat.com using regex.
wordEnds
Given a string and a non-empty word string, return a string made of each char just before and just ...
I'm trying to understand regex as much as I can, so I came up with this regex-based solution to codingbat.com repeatEnd:
repeatEnd
Given a string and an int N, ...
This is similar to my previous efforts (wordEnds and repeatEnd): as a mental exercise, I want to solve this toy problem using regex only. Description from codingbat.com:
...
This question is a combination of regex practice and unit testing practice.
separateThousands
Given a number as a string, introduce commas ...