Skip to content
Advertisement

How to extract the domain in a string by using regex? [closed]

I got a string representing users data.

What is the proper regex to extract domain in this string?

I know that I have to find all strings with 2 characters matching the condition that it comes after the last “.” after a “@”.

However I still failed to implement it.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement