Let me put the question in a precise way How to split based on pattern in vba
<cr>1st data<rc>2nd data<ab>3rd data<ba>4th data
i use the following way to split it in perl
my @values = split(/<([\w]+)>/,$string);
and it gives me output as
cr 1st data rc 2nd data ab 3rd data ba 4th data
i want to do the same with vba split function what should be my approach