I have a string that looks like:
Hi, <name> pls visit <url>
Now i would like to split the string into an array with a regex.
I have tried this:
hi.split("(?=<[A-Za-z]+>)");
Output: [Hi, , <name> pls visit , <url>]
But i would like to have
[Hi, , <name> , pls visit , <url>]
Is there a chance to do that ?