Hi @San ,
Please try the following expressison:
(FINDSTRING(column, "<" , 1) == 0) ? column : LEFT(column, FINDSTRING(column, "<" , 1) - 2)
Both functions FINDSTRING()
and LEFT()
work only with the DT_WSTR data type. So you need to cast the column if it has a different data type.
(FINDSTRING((DT_WSTR,256)column, "<" , 1) == 0) ? column : LEFT((DT_WSTR,256)column, FINDSTRING((DT_WSTR,256)column, "<" , 1) - 2)
I assumed that the 256 length is enough. It could be easily adjusted to accomodate the real length.