I have strings like this:
"Car is blue"
String could also be like this:
"Flower is not at all beautiful"
I have html like this:
<input class="subject" />
<select class="isornot">
<option>is</option>
<option>is not</option>
</select>
<input class="adjective" />
I need to split the string and put it into the appropriate places in the form. For the first string, the subject val should be car, is should be selected, and adjective value should be blue. For the second string, flower is the subject, is not is the select option, and 'at all beautiful' should be the adjective.
Therefore the split should be is or is not. Not sure how to go about it. Thanks.