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 7776805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:58:18+00:00 2026-06-01T17:58:18+00:00

In my SQL, I have some rows that contain email senders. Those senders are

  • 0

In my SQL, I have some rows that contain email senders. Those senders are strings and not separated via columns.

This is 1 example from my row.

"Test Example" <test@example.com>, "Second Person" <sperson@example.com>, third@example.com

As you can see, it’s plain text and ready for explode. I can explode it with comma and separate them.

But today I realized this example:

"Test, Example" <test@example.com>, "Second Person" <sperson@example.com>, third@example.com

As you see, Test has a comma in its name. So if I explode it, it will explode Test too. This will cause an error.

I tried some regex but with no luck. Could anyone suggest to me the best regex to explode them but not names?

FYI, names always in "" tag. So commas are not.

I simply need to pass if comma is in quotes.

  • 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-06-01T17:58:19+00:00Added an answer on June 1, 2026 at 5:58 pm
    explode('>, "', $emails);
    

    And add the exploded chars afterwards – or, better yet, use imap_rfc822_parse_adrlist().

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

Sidebar

Related Questions

I have some script that is delivering a series of rows from an SQL
This is in SQL Server 2005. I have a varchar column and some rows
I have some sql statements that calculates some numbers. It's possible (with bonus points/penalty
I have some code that uses the SQL Server 2005 SMO objects to backup
I have some Crystal Reports connecting to a Sql Server db that I would
i have some SQL code that is inserting values from another (non sql-based) system.
If I had a SQL Server table that looks something like this with some
I have a SQL Server 2005 database in which I have some tables contain
I have some java.sql.Time objects as follows: String s1 = 12:00:04; String s2 =
I have some legacy SQL (SP) declare @FactorCollectionId int; select @FactorCollectionId = collectionID from

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.