I wanted to check if the user had entered a valid email address and rather than trying to use some crazy regex thing in HISE Script I thought I'd tap into JUCE. So I've added a wrapper function
It's in my development branch and there is a pull request.
@Christoph-Hart Is the Engine class the best place for this?
I see that Christoph merged it earlier today along with a few other pull requests I'd made :)
A little tip for anyone using this function to validate email addresses before they are used to perform some interaction with a server: You should also perform validation server side, don't trust it to only the client side.
Actually the Server class would be better...
@Christoph-Hart Good idea
@d-healey Could you make a little video on it's implementation and uses?
@dustbro I don't think a video is neccessary.
Server.isEmailAddress("email@example.com"); // True
Server.isEmailAddress("dustbrohisecom"); // false