Is there any way to extract text between 2 symbols? I have been told to use:
var email = "forename.surname@arco.co.uk";
document.write(email.substring(.,@));
Using substring seems to only work with the position of the character and not symbols. I just want to extract the characters between the “.” and “@”
You could use RegExp:
Or you could use substring: