title: Regex help substring
body: <p>The following code used to work:</p>
  
  <pre><code> my $matchExpr = "User created at \(UserIndex\) UserId = ";
   my @indexLine = grep /\Q$machExpr/, &lt;LOGFILE&gt;;
   ...
   my $indexId = $indexLine[0];
   $indexId =~ s/\Q$matchExpr//;
   chomp $indexId;
  </code></pre>
  
  <p>with a LOGFILE containing the line:</p>
  
  <pre><code>"User created at UserIndex UserId = "
  </code></pre>
  
  <p>However, the LOGFILE format changed to this:</p>
  
  <pre><code>"2017-01-01 08:50:22 User created at UserIndex UserId ="
  </code></pre>
  
  <p>and the code won't work anymore. Looking for a quick fix as no one here knows Perl.</p>
  
  <p>Thanks.</p>