title: Regular expression to find a string immediately preceding a date
body: <p>I am not very familiar with a regular expression. Can you help me with a regular expression to select the string that immediately precedes the date in the below text? Here the result should output :</p>
  
  <p><em>GOT222</em></p>
  
  <p>Below is the text:</p>
  
  <p><em>[2017-11-10 14:00:05] USER=XXX , COMM=RTRV-RET-INF:::::USER_INFO="XXX"; , OWNER=XXX , IP=99.99.999.999
     GOT222 2017-11-10 THU 14:00:05</em></p>