For my Java app, i have a string that looks like:
value1: *sample", test
test: "test"
newtest: *newtest"
I need to match the character " when the string starts with *.
Tried the regex:
"(?!.*")
But this selected all the " in the input.
Was planning to replaceAll(regex, "") to remove the character.
Desired Output:
value1: *sample, test
test: "test"
newtest: *newtest
How do i get this output?
.replaceAll("(\\*\\w+)\"", "$1")*and ending with", how did the"get replaced?