I have a string m="hell,hj;nk,.txt"
I want my string as string m="hellhjnk.txt"
I am using:
Pattern p=Pattern.compile("(\"([^\"]*)(\\.)([a-z]{1,4}[\"]))|'([^']+)(\\.)([a-z]{1,4})'");
It is working for double quotes and extension. How it will work for removing space,comma,semicolon?