Your resulting WHERE statement would look something like the following:
WHERE (ColumnName LIKE '%|123|%' OR ColumnName = '123' OR ColumnName LIKE '%123|%' OR ColumnName LIKE '%|123%')
To make this happen in a transformation, it might get to be pretty ugly inline, so you might want to create a custom transformation method or just a method within the page load event in the transformation.