For simplicity sake, let\'s say I have the following literal string:
abc[4;?;z;*]def
where 4, ?, z and * can appear in random order