I have a specific sentence to work with:
var sentence="example of+a+string";
My goal is to split the string by the +
symbol only when it occurs after the word "of".
When attempting this with the code:
sentence.split(/of(\+)/)
The result splits the string using "of+". How can I achieve the desired outcome of splitting it at the +
that follows the word "of", resulting in ["example","a+string"]
?