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?
d.healey last edited by d.healey
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.
Christoph Hart last edited by
Actually the Server class would be better...
@Christoph-Hart Good idea
dustbro last edited by
@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("firstname.lastname@example.org"); // True
Server.isEmailAddress("dustbrohisecom"); // false