From: Tom Toner on
Hi
I have a string: str0='0010210020010000200000012102', and try to replace all 0s between 1 and 2 with 3, i.e.,
str = regexp(str0, '1[0]+2', 'match')
str =
'102' '1002' '100002' '102'
So str0 should be '0013213320013333200000012132'

Could you please help me do it without loops?

Thanks,