title: Getting the version tag for various inputs
body: <p>INPUT:-</p>
  
  <pre><code>tag#1INCLUDED IN DATABUILD: SU_TAG_PL_DATA.LA.3.6.1.00.00.042.1
  tag#2INCLUDED IN DATABUILD: SU_TAG_PL_DATA.LA.3.6.00.00.042.1
  tag#3INCLUDED IN DATABUILD: SU_TAG_PL_DATA.LA.3.6.00.042.1
  tag#4INCLUDED IN DATABUILD: SU_TAG_PL_DATA.LA.3.6.1.c2.00.00.042.1
  tag#5INCLUDED IN DATABUILD: SU_TAG_PL_DATA.LA.3.6.1.c2.00.00.042
  </code></pre>
  
  <p>CODE:-</p>
  
  <p>Hi,</p>
  
  <p>I have the following code which works for tag#1 in the INPUT shown above but fails for other tags,output should be "042" for all the inputs..can anyone suggest how to fix this?</p>
  
  <pre><code>import re
  comments = [{u'timestamp': 1403046914, u'message': u'Patch Set 1: Looks good to me, but someone else must approve\n\nThis patchset has been processed by the Gator.', u'reviewer': {u'username': u'gator', u'name': u'Gator Service Account', u'email': u'gator@localhost'}}, {u'timestamp': 1403051700, u'message': u'Patch Set 1: Developer Build and Test Successful\n\nINCLUDED IN DATABUILD: SU_TAG_PL_DATA.LA.3.6.1.00.00.042.1\n\nhttp://qwiki.company.com/div_wcnss/SU_TAG_PL_DATA.LA.3.6.1.c2.00.00.042.1', u'reviewer': {u'username': u'username', u'name': u'user name2 ', u'email': u'username@div.company.com'}}, {u'timestamp': 1403052176, u'message': u'Patch Set 1: Looks good to me, approved\n\n', u'reviewer': {u'username': u'username2', u'name': u'user full name', u'email': u'username2@div.company.com'}}]
  
  matchobj = re.search(r"INCLUDED IN DATABUILD:\s+\S+?\.(?:\d+\.){5}(\d+)(?:\.\d+)?", str(comments))
  print matchobj
  
  build = matchobj.group(1)
  print build
  
  chunks = build.split('.')
  print chunks
  
  last_one = chunks[-1]
  print last_one
  </code></pre>