I want a java regex that could convert this simple sentence like this:
1) I am a (happy) person!!!
into
I am a happy person.
i.e. ignore all the numbers and special characters but ignore the white space between the words.
I am using this regex right now:
("\P{L}", "")
but it is giving a output like:
Iamahappyperson
Thanks for your help!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…