5. Give regular expressions for the following: A regex that,given a URL, captures the domain name A regex that capturesPostgreSQL Dollar-quoted String literals
Answer
1)
The required regex is:
^(?:https?://)?(?:[^@n]+@)?(?:www.)?([^:/n?]+)
2) NOTE: I could not understand this part.Could you please explain this part a little so that i can assistyou with this problem?