Considering the lines
animal1=fish,dog,lion,duck,bee,rabbit,cat
animal2=turkey,dolphin,bear,goat,tiger
animal3=elephant,butterfly,alpaca,chicken,horse
We can get the separated words by comma words using for example:
(.*?)(?:,|$)
and we’ll get (|#| meaning each selection separation):
animal1=fish,|#|dog,|#|lion,|#|duck,|#|bee,|#|rabbit,|#|cat
animal2=turkey,|#|dolphin,|#|bear,|#|goat,|#|tiger
animal3=elephant,|#|butterfly,|#|alpaca,|#|chicken,|#|horse
How do I manage to get the separated words, with the multiple selection in each word,
discarding “animal1=”, “animal2=” and “animal3=”?
fish,|#|dog,|#|lion,|#|duck,|#|bee,|#|rabbit,|#|cat
turkey,|#|dolphin,|#|bear,|#|goat,|#|tiger
elephant,|#|butterfly,|#|alpaca,|#|chicken,|#|horse
What I could get so far is to use the negative lookbehind, but it ‘anchors’ to first occurrence:
(?<=animald=).[^,s]*
Using Sublime Text, simple Find.