Now how to collect the domain part from the email address? We will use the string.length to find out the total length of the string and then collect the part of the string starting from the location of (@ +1) till the end of the string. Here is the code.
Using substr functionWe will use substr function to get userid and domain part. Here is the code
This article is written by plus2net.com team.