I have to compare a column value with a user input numbers. The string in the column is in the format 8|5|12|7|
Now, I need to compare a user input values 2,5,3 with this column value
When I use LIKE operator as '%2|%' I got the output by matching with column value |12|
How do I match the string by using Regular Expression or any other way?

colcolumn is storing data in an unnormalized format of8|5|12|7. I would recommend that you normalize your database. Also, your question is a bit unclear.'|' + your_column + '|' LIKE '%|2|%' or '|' + your_column + '|' LIKE '%|5|%' or '|' + your_column + '|' LIKE '%|3|%'etc.? that way it will match only the exact numbers you want inside the | characters.