In a Bash script I would like to split a line into pieces and put them into an array.
The line:
ParisABFranceABEurope
I would like to split them in an array like this (with AB):
array[0] = Paris
array[1] = France
array[2] = Europe
I would like to use simple code, the command's speed doesn't matter. How can I do it?