String Manipulation

pydiana.tools.string_manip.unitinstr(string)[source]

Function for finding the unit in a string by searching for '[....]'

Parameters:

string (string to be searched) --

Returns:

string with the unit or None if the string is None or unit is not found