Let's say I have a line:
cat,mouse,dog,horse
Is there a regular expression or function that will work as follows?
1)"cat" return string ->"mouse,dog,horse" 2)"mouse" return string ->"cat,dog,horse" 3)"dog" return string ->"cat,mouse,horse" 4)"horse" return string ->"cat,mouse,dog"
I need to remove the selected item from the string and return the remaining parts of the string.
source share