I am trying to capture 1 or 2 pieces of information. When using regexr it shows my expression to be working and capturing like it should, but when running it, it only captures from a single string (on the same data as in regexr) and returns null
for the rest.
I have tried building the expression here
And when switching to JS flavor it shows the capturing groups not working via the color overlays, but it shows them working correctly in the side pane. Even the simplest capturing group seems to not work.
What am I missing?
Input is :
<@U0BUPU9QQ> 49
50
<@U0BUPU9QQ>
<@U0BUPU9QQ> noget 49 noget andet tekst 5 40
<@U0BUPU9QQ> noget andet tekst 5 40
<@U0BUPU9QQ|mn> has joined the channel
Output:
Should be the ID inside the <>
(except the @
) and the last group of digits in the line, if there is no ID then only the digits.