Replies: 2 comments 3 replies
-
If you want to match a given string with re.compile(...).match(...), the whole string has to match the regex - just modify it a bit and it should work. Just like here: ⏫Please choose wether you need the link or not, i wasn't sure about it I hope this helps in any kind, i didn't completly understand the question / problem but i thought i might want to help. |
Beta Was this translation helpful? Give feedback.
-
Are you including those actual quotation marks in the expression? I don't think they should be there. Also the I believe you'd want to literally just put the expression as I tried it with brackets around it and it just flagged literally everything, so maybe that's a problem and I shouldn't have the example have brackets around it |
Beta Was this translation helpful? Give feedback.
-
Does anyone here use regex to scan for comments?
I just tried it today and it's returning results for things it shouldn't as far as I know, basically all the comments. What am I missing?
I was using a video from a recent issue form
https://www.youtube.com/watch?v=-oVhr-Hd4MI
and trying to scan for any.uno
websites. I have tried["\w+\.uno"gi]
and["[a-zA-Z]+\.uno"ig]
(with and without the outside[]
to little success. It's returning results that don't have a match in addition to the ones that doAccording to Regex101.com it should work
Beta Was this translation helpful? Give feedback.
All reactions