0

Is there any way to provide space between Capital Letters.

Eg. I have a jstl expression ${platName} which outputs  AmazonEcho

What I need as output is  Amazon Echo.

I tried a few jstl functions but it didn`t help.

Rajendra Gupta
  • 381
  • 1
  • 16

1 Answers1

0

Thanks, this worked

${platName.replaceAll("(\\p{Ll})(\\p{Lu})","$1 $2")}
Rajendra Gupta
  • 381
  • 1
  • 16