regex - Parsing IBM server error message in Java -
i have error message need parse. dsnl027i agentname server distributed agent luwid=xx00000.x000.xx0000000x00=00000 thread-info=xxxx00:255.255.255.255:xxxx00:application_name:*:*:*:* received abend=00x reason=00000000 there thousands of these messages need parse. follow similar pattern 1 below. dsnl027i agent-type distributed agent luwid luw-id=token thread-info thread-information received abend=abend-code reason=reason-code additionally, these patterns available on ibm documentation site. http://www-01.ibm.com/support/knowledgecenter/ssepek_10.0.0/com.ibm.db2z10.doc.msgs/src/msgs/db2z_msgs.dita i need capture of fields in message , create xml object, example given error message below. <agent-type>agentname</agent-type> <luwid>xx00000.x000.xx0000000x00</luwid> <token>00000</token> <thread-information>xxxx00:255.255.255.255:xxxx00:application_na