I recently completed a coding test as part of a recruitment process. In one of the questions, I was asked to extract only numbers from a string.
The example test case