String a = "sin(23)+cos(4)+2!+3!+44!"; a.replaceAll("\D"); //Not working it is only extracting Digits
我想提取与本数!只(例如2和3),则必须将它保存在一个int[]并有这些数字在那里的地方重新粘贴2!和3!存在.
!
2
3
int[]
2!
3!
java regex
java ×1
regex ×1