Swift 4 - Find number in string and return location and length : `let myStr = "I have 4.34 apples."`

I need the location range and the length, because I'm using NSRange(location:, length:) to bold the number 4.34

    extension String{
        func findNumbersAndBoldThem()->NSAttributedString{
             //the code
        }
    }