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.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…