I would like to parse the following string into a javascript array. Is Regex capable of performing such a task? How should I go about achieving this? I would like for the content to be capable of being dynamic other than the keys
<type1> <type2>
will remain the same. Meaning any combination of the string with any text should not matter. The keys are the delimiters.
Hello, I am your <type1> and <type2>!
array[0] = Hello, I am your
array[1] = <type1>
array[2] = and
array[3] = <type2>
array[4] = !