title: Regular expression to detect pre defined string codes or a group of these codes
body: <p>I am trying to figure out how to detect some two digit string codes inside a bigger string, because it can have a code or two codes grouped by a <code>/</code>.</p>
  
  <p>Example: I have these lines on a file and my regex don't get the first line, because it has <code>BL/DU</code>. It can have these codes <code>LB|BL|DU|HO|DP|DE|CO|EC</code> or one of these a slash and another one.</p>
  
  <pre><code>11645772  - . . - A NORA QUE A MAMAE PEDIU PRA DEUS BL/DU 11/12/2014
  6437320  - . . - AMOR FATAL LB 25/06/2012 
  5622777  - . . - AMOR QUE E MEU LB 16/08/2011 
  5622778  - . . - AQUELA MAE LB 16/08/2011 
  11645686  - . . - BALANCO DO MAR LB 11/12/2014 
  </code></pre>
  
  <p>This is the regular expression i am using:</p>
  
  <pre><code>(\d+)\s+(-\s.\s.\s-)\s+([\w\s]+)\s+(LB|BL|DU|HO|DP|DE|CO|EC\/?LB|BL|DU|HO|DP|DE|CO|EC)\s+(\d{2}\/\d{2}\/\d{4})
  </code></pre>
  
  <p>Thank you!</p>