I have used regex.h header file in my code and the code works perfectly fine and it extracts the domain name from any URL except protocol.
Also it uses regcmp to compile the regex and regexec to execute the matching portion of the regex to given URL.
What does
(\\/.*-)?(w+)([a-z, A-Z, 0-9, .])*
regular expression actually mean in C?