title: regex matching consecutive characters from start and end
body: <p>Im trying to match  a string to that containsthree consecutive characters at the beginning of the line and the same six consecutive characters at the end.
  for example
  CCC i love regex CCCCCC
  the C's would be highlighted from search</p>
  <p>I have found a way to find get the first 3 and the last six using these two regex codes but im struggling to combine them
  <code> ^([0-9]|[aA-zZ])\1\1  and ([0-9]|[aA-zZ])\1\1\1\1\1$</code>
  appreciate any help</p>