Yes, for that you could use the regex of . to grab any character, + tells it 1 or more matches, the ? makes it lazy so it doesn't attempt to grab everything to the end, then outside of the named capture group we show it the characters that appear after the field value we want, which in this case is a space, \s, and a pipe | character. For the pipe | character, we have to escape it since it means something else in regex, so we put a backslash \ before it. The end result is this regex, which should work for you: message:\s*(?<raw_message>.+?)\s\|
... View more