NCATComp410 / comp410_summer_2023

Repository for COMP-410 summer 2023
GNU General Public License v3.0
0 stars 3 forks source link

Implement email detection #2

Open ouudemadu opened 1 year ago

ouudemadu commented 1 year ago

Description: According to data protection laws such as the GDRP (https://www.gdpreu.org/the-regulation/key-concepts/personal-data/), email addresses are personal data that can be used to identify an individual.

This issue focuses on valid email address formats. A valid email address consists of an email prefix and an email domain, both in acceptable formats. The prefix appears to the left of the @ symbol. The domain appears to the right of the @ symbol. For example:

username@domain.com

Description Steps: Python code will be developed which will detect strings that match a valid email format. Will check if the email consists of any combination of letters, numbers, periods, underscores, hyphens, and plus signs, followed by an "@" symbol, followed by another sequence of letters, numbers, periods, and hyphens, and then ends with a period and another sequence of letters.

claesmk commented 1 year ago

What characters are considered valid for an email address? For example user_name@domain.com would be valid

ouudemadu commented 1 year ago

What characters are considered valid for an email address? For example user_name@domain.com would be valid

Valid characters for an email address would include alphanumeric characters (aA-zZ, 0-9) and special characters (_.+-).

hsalaam commented 1 year ago

Will the program be case sensitive when it come to the input of an email? For example would username@domain.com and UserName@domain.com end up being valid?

ouudemadu commented 1 year ago

Will the program be case sensitive when it come to the input of an email? For example would username@domain.com and UserName@domain.com end up being valid?

Emails aren't typically case sensitive so the program will only care about the format of the string, not the letter casing.