I need my Java program to take a string like:
\"This is a sample sentence.\"
and turn it into a string array like:
{\"this\
Try this:
String[] stringArray = Pattern.compile("ian").split( "This is a sample sentence" .replaceAll("[^\\p{Alnum}]+", "") //this will remove all non alpha numeric chars ); for (int j=0; i