Hi Bliide --
If I understand you correctly, please correct me if I'm wrong, you would like capture the following from the above log?:
RegNum: 5.100.1, size of 0 bytes is invalid (-2147483638)
And not the entire RegNum field, correct?
RegNum: 5.100.1, size of 0 bytes is invalid (-2147483638), RegisterMsg.cpp line 263 (class CRegisterFromDeviceMsg).
For the former, you can capture it in many different ways but it would be based on the assumption that there will always be a second perior within that field. If there isn't, the regex would likely fail. If you can rely on there always being 2 periods within that field you may be able to use the following regex to capture that data.
(?<field_name>RegNum\:.*\b\,.*)(?=\,)
However, if you'd rather capture the entire field value you could use the following:
(?<=RegNum\:\s{1})(?<regnum>.*)(?=Handled\:)
Hope this helps!
Kind Regards,
~Brian
... View more