I am new to RE2 syntax regex, I want to match first word comes after specific string.
For example:
java.lang.OutOfMemoryError: Java heap space
Error sending periodic event
java.lang.NullPointerException: Java heap space
Error sending periodic event
I want to capture anything comes after java.lang. so I can get OutOfMemoryError, NullPointerException errors. I know in Python and PCRE we can do this using positive lookbehind and regex will be - (?<=java.lang.).*?(?=\s), but this is not working for RE2.