mysql> select concat(ip,'-') from ip where ip REGEXP '192.168.0.2( +|,|$)';
+--------------------------+
| concat(ip,'-') |
+--------------------------+
| 192.168.0.2- |
| 192.168.0.2,192.168.0.5- |
| 192.168.0.2- |
| 192.168.0.2 ,aaaa- |
+--------------------------+
4 rows in set (0.00 sec)