This can be done with awk,sed,or PHP. I have comma delimited string of which I want remove a value.

```
mike,suzy,carter,jason

$remove_value = mike
sed 's/$remove_value//' file_with_delimited_string

```

This gives me ',suzy,carter,jason'

```
$remove_value = jason
sed 's/$remove_value//' file_with_delimited_string

```

This gives me 'mike,suzy,carter,'

How do I remove the errant comma regardless of the location of the value removed? This is a large file with many comma delimited strings. This change has to be for the current match only. I'm using PHP to edit a text file on a Linux server.