val text
= "May 5 23:00:01 10.14.3.10 %ASA-6-302015: Built inbound UDP connection" val regex
= """^.*?(?=\s\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s%)|(?<=[\w:]\s)\w+(?=\s[cr])""".
r val result
= regex.
findAllIn(text
) result.foreach { x => println(x) }
}
b2JqZWN0IE1haW4gZXh0ZW5kcyBBcHAgewoJdmFsIHRleHQgPSAiTWF5ICA1IDIzOjAwOjAxIDEwLjE0LjMuMTAgJUFTQS02LTMwMjAxNTogQnVpbHQgaW5ib3VuZCBVRFAgY29ubmVjdGlvbiIKCXZhbCByZWdleCA9ICIiIl4uKj8oPz1cc1xkezEsM31cLlxkezEsM31cLlxkezEsM31cLlxkezEsM31ccyUpfCg/PD1bXHc6XVxzKVx3Kyg/PVxzW2NyXSkiIiIucgoJdmFsIHJlc3VsdCA9IHJlZ2V4LmZpbmRBbGxJbih0ZXh0KQoJcmVzdWx0LmZvcmVhY2ggeyB4ID0+IHByaW50bG4oeCkgfQp9