I am very new to java. i want to splits the string into following manner.
suppose i have given a string input like sample 1 `jayesh =10 vyas =13 harshit=10; and so on` as a input
sample 2: `harsh=2, vyas=5;`

now i want to store `jayesh, vyas, harshit from sample 1 and harsh , vyas from sample 2(all this type of strings which are just before the assignment operator)` into string or char array.

so can anyone please tell me about that how to do this in java. i know about split method in java, but in this case there are multiple strings i have to store.