More forgiving regex to extract the code class when streaming.