I need to exclude a question mark from a string using the exclusion of that character, but I still get some undesired results. I have to get any link (as text) that doesn't have a question mark, for example, I have to exclude an URL like:
and get any other text (I've already selected which of them are HTTP links, I need those that have /l/ in the middle but without "?").
I tried:
re.compile("(/l/){1}[^\?]*")
or
re.compile("(/l/){1}[^\?]")
but I still get some texts with "?".
I'll appreciate any help!