import re


def str2float( s ):
    """

        Description:
        ----------
        Converting an input string to a float arraay

        Arguments:
        ----------
            [NAME]          [TYPE]        [DESCRIPTION]
            (1) s           str           The string which will be parsed to float array

        Returns:
        ----------
            The parsed float array

    """
    if not isinstance( s, str ):
        raise ValueError( "Input argument should be string, but {} is given".format( type( s ) ) )

    return [ float( i ) for i in re.findall( r"[-+]?\d*\.\d+|[-+]?\d+", s ) ]