(?<!")https:\/\/t.me\/(c)?\/?([\+a-zA-Z0-9]+)\/?([0-9]*)?
I want to find all telegram links without quotation marks (") but I don't want the leading negative lookbehind to be a group, how can I do this? I tried the following but it didn't work.
This code works but i want the initial negative lookbehind not to create group.
My steps:
(?:(?<!"))
not worked,(?<!(?:"))
not worked either
Examples:
https://t.me/+AjFb2c8u85UfYrY0
-> True (1 group -> +AjFb2c8u85UfYrY0) (not two groups)"https://t.me/+AjFb2c8u85UfYrY0
-> False