Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4569436
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:13:09+00:00 2026-05-21T19:13:09+00:00

Filter email address with regular expressions: I am new to regular expressions and was

  • 0

Filter email address with regular expressions: I am new to regular expressions and was hoping someone might be able to help out.

I am trying to pattern match an email address string with the following format:

FirstName.LastName@gmail.com

I want to be sure that there is a period somewhere before the ‘@’ character and that the characters after the ‘@’ character matches gmail.com

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:13:10+00:00Added an answer on May 21, 2026 at 7:13 pm

    You want some symbols before and after the dot, so I would suggest .+\..+@gmail\.com.

    .+ means any symbols (.) can appear 1 or more times (+)
    \. means the dot symbol; screened with backslash to suppress the special meaning of .
    @gmail and com should be matched exactly.

    See also Regular Expression Basic Syntax Reference

    EDIT: gmail rules for account name only allow latin letters, digits, and dots, so a better regex is
    [a-zA-Z0-9]+\.[a-zA-Z0-9]+@gmail\.com

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a regular expressions that will filter valid emails using PHP
I used filter-branch to fix an incorrect email address in my repository but all
I'm building an email filter and I need a way to efficiently match a
Hi I am using razor and trying to use regular expression to validate email
I need to filter some email address based on the domain name : Basically
I am trying to validate the uniqueness of an email address in datastore. The
I am trying to retrieve all the email gruops and their mail address from
Say you want to filter elements out of a List. Running this code triggers
I'm using the jquery validation control remote method to test if an email address
Intent intent = new Intent(Intent.ACTION_SEND); intent.setType("text/html"); intent.putExtra(Intent.EXTRA_EMAIL, "emailaddress@emailaddress.com"); intent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); intent.putExtra(Intent.EXTRA_TEXT, "I'm email body.");

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.