I am having a string which contains xyaahhfhajfahj{adhadh}fsfhgs{sfsf}
.
Now I want to replace {string}
with a space.
I want to replace the curly brackets and the string in it with null.
I want to use replaceFirst
for it but I don't know the regex for doing it.