Advertisement
AwDod

check emails pawn

Oct 28th, 2023
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.25 KB | None | 0 0
  1. stock CheckMail(const string[])
  2. {
  3.     if(!(8 <= strlen(string) <= 128))
  4.         return false;
  5.  
  6.     new pos = strfind(string, "@", true);
  7.  
  8.     if(pos > 0 && strfind(string, ".", true, pos + 1) > pos + 1)
  9.         return true;
  10.  
  11.     return false;
  12. }
Tags: checkemail
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement