Disclaimer: These are very basic, and will not account for checking valid TLDs or file extensions. Use at your own risk.
Assuming you don't need to account for directories or files, to match only those base URLs without subdomains, you can use the following regex:
(?<=^|[\n\s])(?:https?:\/\/)?(?:www\.)?[a-zA-Z0-9-.]+\.com\/?(?=$|[\n\s])
#DESCRIPTION::
# (?<=^|[\n\s]) Checks to see that what's preceding the URL is the beginning of the string, or a newline, or whitespace.
# (?:https?:\/\/)? Matches http(s) if it is there
# (?:www\.)? Matches www. if it is there
# [a-zA-Z0-9-]+ Matches "example" in "example.com" (as well as any other valid URL character; will also match subdomains)
# \.com\/? Matches .com(/)
# (?=$|[\n\s]) Checks to see that what's following the URL is the end of the string, or a newline, or whitespace.
If you need to also match directories and files, the end of the regex needs to be modified and added to slightly:
(?<=^|[\n\s])(?:https?:\/\/)?(?:www\.)?[a-zA-Z0-9-.]+\.com(?:(?:\/[\w]+)+)?(?:\/|\.[\w]+)?(?=$|[\n\s])
#DESCRIPTION::
# (?<=^|[\n\s]) Checks to see that what's preceding the URL is the beginning of the string, or a newline, or whitespace.
# (?:https?:\/\/)? Matches http(s) if it is there
# (?:www\.)? Matches www. if it is there
# [a-zA-Z0-9-.]+ Matches "example" in "example.com" (as well as any other valid URL character; will also match subdomains)
# \.com Matches .com
# (?: Start of a group
# (?:\/[\w]+)+ Attempts to find subdirectories by matching /, then word characters
# )? Ends the previous group. This group can be skipped, if there are no subdirectories
# (?:\/|\.[\w]+)? Matches a file extension if it is there, or a / if it is there.
# (?=$|[\n\s]) Checks to see that what's following the URL is the end of the string, or a newline, or whitespace.