'{5}<blah>{0}</blah>'
i want to turn that into:
['{5}', '<blah>', '{0}', '</blah>']
i currently use: ________.split(/({.*?})/);
but this fails when curly brace is the first character as in the case:
'{0}<blah>'
which gets turned into:
['', '{0}', '<blah>']
... a 3 element array, not a 2
what's wrong with my regex?
Thanks!