I want to replace &sp;
in the string below with Z
.
Input text : ABCD&sp;EF&p;GHIJ&bsp;KL
Output text : ABCDZEFZGHIZKL
Can anyone tell me how to replace the every instance of &\D+;
using java regular expression?
I am using /(&\D+;)?/ but it doesn't work.