Here I have text something like this:
const string = 'Welcome;;to::';
const string ='Welcome;;';
I want to split this string with ;;
and ::
;
Expected result:
['Welcome', ';;', 'to', '::']
There will be chance that number of pattern will be increased. So, is this possible ?
Note: There is no space between words.