title: how to extract the date from text in different types of date formats using python regex
body: <p>I am doing ocr problem, I have 500 images and I have extracted the text from images and saved as CSV, In that text having different formats of dates and I  want to extract the dates.
   from that text. please help me how to extract the dates form text.
  The date formats is like this :</p>
  
  <pre><code>07-June-2018,08/3/17,30-04-2018, 03/june/19, sep 29,2018,24may'19
  </code></pre>
  
  <p>I have text  like this :</p>
  
  <pre><code>    file_Name            Text
  0   01048818.jpeg   
  1   0156b46f.jpeg   SST Z9R|.EPS5132K1ZL\nBILL N0 : ZIIG |)T:25HJ'...
  2   01a0cabb.jpeg   FourthStreetM|lI\nP174 iirwi iA /\V| Nut\n\n ...
  3   02acce30.jpeg   
  4   02d54805.jpeg   &lt;§UU[§3U.|HV’\n\nSubway#1b'/raw Mum. 5/4-&lt;5g4....
  5   02f4068e.jpeg   \-* 'r"“ \A&gt;~ in u ‘ ..« mu.‘\nR8 Ahv'\ldIh|q...
  6   0308aae2.jpeg   server: mm Slalum u\n\nmay I H3533 Dy 7\nIame:...
  7   0349ff40.jpeg   m«.mw\\n\n52 M w u1m:m\n\n|‘C.uw1‘Hu w hm‘
  8   0358c6c3.jpeg   5\n4 Lu A!rJ././ O 3\n.. I ..Or3 . B _.h H\n, ...
  9   037ef967.jpeg   Wemms YUU\n\nEDATHAMARA PETRHLEUM CU\n\nKK ROA...
  10  0406cfb1.jpeg   mlu tell us about your visit.\nValidation Code...
  11  04887bab.jpeg   202\n\nWy A L/mm LNIRH smwmm, DH A IRH\nM1]! I...
  12  049c8dfd.jpeg   M7110
  13  04f988a3.jpeg   HAE‘-IGHﬁ.RPiJRA PLAZA\nFRDH K! [.50 TU MI 220...
  14  04fa5e11.jpeg   
  15  05f91a79.jpeg   "_‘d”K yous:\n1MCA‘WSter's D911’\n310 S Ilhnoi...
  16  068ea6e6.jpeg   Iukul 1:01 cm\n\n,.\n\nMmuy\n\n:1 Mn\nTh‘ ‘\n\...
  17  0728f702.jpeg   +1\n\nom INDIAN room\n204 Spring St\nNew York,...
  18  077124e4.jpeg   "" "NR\n§u§I' I‘ﬂ»AR'A, ig tun gglilm.’\n\n(~1...
  19  093304e6.jpeg   cAsA“:5&gt;”uNL\n\n£N1x'hPR\‘:l‘S\n\nWED\n\n \n\...
  </code></pre>
  
  <p>I tried this code, but getting  some an error:</p>
  
  <pre><code>import re
  text=df['Text']
  m = re.search('\b(\d{2}-\d{2}-\d{4})\.', 'text')
  print (m.group(1))
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>AttributeError: 'NoneType' object has no attribute 'group'
  </code></pre>