title: java regular expression word without ending with dot
body: <p>I need to print the simple bind variable names in the SQL query.
  I need to print the words starting with <code>:</code> character But NOT ending with dot  <code>.</code> character.
  in this sample I need to print <code>pOrg</code>, <code>pBusinessId</code> but NOT the <code>parameter</code>.
  The regular expression <code>="(:)(\\w+)^\\."</code> is not working. </p>
  
  <h2>Could you help in correcting the regular expression.</h2>
  
  <p>Thanks
  Peddi</p>
  
  <pre><code>public void testMethod(){ 
  String regEx="(:)(\\w+)([^\\.])";  
  String input= "(origin_table like 'I%' or (origin_table like 'S%' and        process_status =5))and header_id = NVL( :parameter.number1:NULL, header_id) and (orginization = :pOrg) and (businsess_unit = :pBusinessId";
  Pattern pattern;
  Matcher matcher;
  
      pattern = Pattern.compile(regEx);
      matcher = pattern.matcher(input);
  
      String grp = null;
  
      while(matcher.find()){
  
          grp = matcher.group(2);
          System.out.println(grp);
  
      }
  }
  </code></pre>