title: finding different char sequences inside a string using regex
body: <p>ex:<br>
  if we have a string s1="abcde" s2="abd"<br>
  find the occurrences of "ad" in s1,s2.. here the occurrence count is 2 on the whole..</p>
  
  <p>Can any1 help me regarding the regex code in java... pls..</p>