This is a part of a string
test="some text" test2="othertext"
It contains a lot more of similar text with same formating. Each "statment" is separate by empty space How to search by name(test, test2) and replace its values(stuff between "")? in java
I dont know if its clear enough but i dont know how else to explain it
I want to search for "test" and replace its content with something else
replace test="some text" test2="othertext" with something else
Edit: This is a content of a file
test="some text" test2="othertext"
I read content of that file in a string
Now i want to replace some text with something else
some text is not static it can be anything