News for hackers. Stuff that matters.
Re:Employees Are Feeding Sensitive Biz Data to ChatGPT, Rais... by pama on Monday March 27, 2023 @10:43PM (#35335202)
For comparison GPT-4 provides the following Python regex and then warns that it does not catch all edge cases and that it’s better to use a dedicated library like email-validator:

email_pattern = r"^(?=.{1,256})(?=.{1,64}@.{1,255}$)(?=\S)(?:(?!@)[\w&'+._%-]+(?:(?<!\\)[,;])?)(?<=\S)@((?=\S)(?!-)[A-Za-z0-9-]{1,63}(?<!-)\.?)+[A-Za-z]{2,19}(?<=\S)$"

Re:Employees Are Feeding Sensitive Biz Data to ChatGPT, Rais... by mewpmewp2 on Tuesday March 28, 2023 @03:12AM (#35336987)
I would say either that or just have a basic check that there is an @ somewhere.