I have tested your regex with the contents of the notification. I know the before and after of the string I want to extract. The text in question can to my understanding be extracted with "/(?<=Code: )[a-zA-Z0-9]+" only using a lookbehind because it begins on one line with "Code: " and ends on...
I tested it by sending the notification through a dummy Telegram account with same group name and same message as the notification. So I did test your regex already.
The "/" is a part of the regex. But I got it working today, by changing the regex to /(?<=Code: )[a-zA-Z0-9]+. Now it's extracting the correct code. It's not always the same length, but it always ends on one line. So it extracts the code and nothing else.
Now everytime I get a Telegram...
I have set the trigger to the correct name and app for the notification. It does execute actions like interact with notification. But I can't get it to extract the text I want.
It appears in the body of the message and it comes in the same format every time. I'm trying to capture it like this -...