One issue with the code was parentheses within the link. If it had an end parentheses other than the end parentheses, it wouldn't return the full link ie:

Would return "https://something("
- Maybe trying to make a method that checks if what is after the last end parentheses is a new line so that it can differentiate between the actual end and a "fake" end.