I am going crazy over this, i hope someone can help me.
I am trying to regex this url: https://www.reddit.com/r/spacex/?count=50&after=t3_xxxxxxx where the x are numbers and letters.
The url is from an HTML file:
https://www.reddit.com/r/spacex/?count=25&after=t3_319905
I tried this:
re.search(r'(<a href=")(https://www.reddit.com/r/spacex/?count=25.+?)(")', subreddit).group(2)
but i keep getting NoneType' object has no attribute 'group'.