title: Get Second to last character position from string
body: <p>I have a  dynamically formed string like -
  part1.abc.part2.abc.part3.abc</p>
  
  <p>In this string I want to know position of second to last "." so that i can split string as 
  part1.abc.part2.abc and part3.abc</p>
  
  <p>let me know is there any direct method available to get this?</p>