title: capturing only certain characters in regular expression by python
body: <p>I'm trying to create pattern that detects certain strings. Basically, the purpose is if detect 'ABCDEF' in a string then return "true". but between 'ABC' and 'DEF', there would be (L+count) or (number) or not like examples below. BTW all examples below return "true".
  It would be really appreciate if some one can advise how to ignore those combo of number and characters between "ABC" and "DEF"?</p>
  
  <pre><code> ABC(L30)(345)DEF, ABC(L2)(45)DEF, ABCDEF, ABC(L10)DEF, ABC(2)DEF
  </code></pre>