title: Regex for label=username and then isolate it
body: <p>This may be so simple, but im a initiate and i don't find a answer to this.</p>
  <p>So this is my test string, i need to convert the username to a label.</p>
  <p>I think with this code below i already converted the username as a label.</p>
  <pre><code>{filename=&quot;/folder/folder/folder/folder/folder/folder/File.lgw&quot;} |= `]:The referenced account is currently locked out and may not be logged on to.`| regexp &quot;(?P&lt;username&gt;)&quot;| line_format &quot;{{.username}}&quot;
  </code></pre>
  <p>I am using this Test string on regex101 trying to isolate the username correctly.</p>
  <pre><code>[Listener 00_TEST_ACCOUNT_LOCK, address 00_TEST-ACCOUNT-LOCK_USER:username]:The referenced account is currently locked out and may not be logged on to.
  </code></pre>
  <p>I only need keep the beggining part of the code that is:</p>
  <pre><code>[Listener 00_TEST_ACCOUNT_LOCK, address 00_TEST-ACCOUNT-LOCK_USER: 
  </code></pre>
  <p>I can add anything to the start and end of the username to better identify it, it can be changed later on to match the server example: --username--</p>
  <p>I already tried something so simple as a regular expression of: <code>.*--</code> but im stuck there i i don't know what else i can try or if its even good</p>