Is it possible to do multiple substitutions by means of a one-liner. you can add the first part in s/// as a list like
s/(apples|oranges|bananas)/fruit/but if I would like to make a substitution apple > yummy, orange > yummier, banana > yummiest. then I can't just
s/(apples|oranges|bananas)/(yummy|yummier|yummiest)/because it would just replace them all with the full (yummy|yummier|yummiest) not case by case. Is it possible still to get something like this by a somewhat comparably short expression.
In reply to multiple substitution by naturalsciences
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |