5 Give Regular Expressions Following Regex Given Url Captures Domain Name Regex Captures P Q37184487

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?

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.