crypthone
BAN USER
void seattleLineParser(String input){
def lines = input.split("[!.,][\\s+]");
for (line in lines){
def newLine = ""
def first = true
for (char_ in line.replace("!", "").toCharArray()){
if (first) { first = false; newLine += char_.toUpperCase() }
else newLine += char_.toLowerCase()
}
println "$newLine."
}
}
seattleLineParser("Sea!tle is a nice place. Work Hard! have Fun, make HIStory!")
RepPatriciaNRowe, Consultant at ADP
Hi i am a Freelance Writer and Social Media Manager who helps finance professionals and Fin-tech startups build an audience ...
RepMelissaJoy, Associate at Bocada
Hi, I am Melissa, a purchasing agent from Texas. Kind of a good Samaritan, terrible athlete, but extremely blessed in ...
Open Chat in New Window
This should work for 2- and 3-digit numbers as well.
- crypthone February 12, 2018