Fetch digits between the text

Can you share the sample input @Riya1