mardi 10 novembre 2015

Splitting a string on dot (.) except if it appears in a fraction using regex in Java

As the title says, I want to split a string using java regex based on dot but only if the dot appears in between alphabets.

Lets say the string is:

System.out.println(5.55);

I need output as

System
out
println(5.55);

Aucun commentaire:

Enregistrer un commentaire