I’m trying to match either @ or the string at, like for name@email and nameatemail. I imagine it’s something like
regex = '@|at'
or
regex = '@|(at)'
but I just can’t find the right syntax.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For your issue both
regexworks correctly: