find_dollar

find_dollar(text, symbol='$')

Find prices in text

Parameters

text: str Text selected to apply transformation

symbol: str Coin symbol

Examples:

sentence="this shirt costs $20.56"
find_dollar(sentence)
    >>> '$20.56'