I have a log file like this
[01012017 052235 500][1][INFO]> ----Amount : 200
[01012017 052235 515][1][INFO]> ----Mix : 1
[01012017 052235 515][1][INFO]> ----Currency : LKR
[01012017 052243 156][1][INFO]> ----Denomination
[01012017 052243 171][1][INFO]> -----CU TYP
I want to extract the date after the 1st square bracket and I wrote a python code as follows.
transactionDate = re.findall('\[(.*?)\s\w+\s\w+\]\[\w\]\[INFO\]\>\s+\w+Amount',strtosearch2,re.DOTALL)
This gives a empty list. The expected output is:
01012017
Can you please help fix this error ?