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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:01:09+00:00 2026-05-26T01:01:09+00:00

I have a csv file that I need to revise, here is a snippet

  • 0

I have a csv file that I need to revise, here is a snippet from it:

1.1.1,"1, 8, 11, 13"
1.1.2,"10, 11, 12"
1.1.3,"2, 3, 10, 11, 13"

I want to format it like this:

1.1.1,1
1.1.1,8
1.1.1,11
1.1.1,13
1.1.2,10
1.1.2,11
1.1.2,12
1.1.3,2
1.1.3,3
1.1.3,10
1.1.3,11
1.1.3,13

I am using the search replace function within a text editor, w/ the regular expression option enabled.

  • 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-26T01:01:10+00:00Added an answer on May 26, 2026 at 1:01 am

    I can’t think of a way to match when the number of values in the quoted part varies as your data does, but if there aren’t too many variations, you could use something like this and just fiddle about by adding ,\s*(\d+) to the Find part and \n\1,\5 to the Replace part a few times to catch all permutations.

    Find:

    ([\d\.]+),"(\d+),\s*(\d+),\s*(\d+)"
    

    Replace:

    \1,\2\n\1,\3\n\1,\4
    

    This works in Notepad++ for the second line of your example.

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

Sidebar

Related Questions

I have csv file that looks like this: artist,year,id,video_name,new_video_id,file_root_name,video_type ,,,,,, Clay Aiken,1,clay_aiken,Sorry Seems To
I currently have a csv file that I'm parsing with an example from here:
I have data stored in a csv file that looks like this: Date,BLOCK,,Wood,Miscellaneous,,Totals,MO Saturday,4055-RU,4055-AR,4091,1139,1158,,100
I have a CSV file that looks like this AS2345,ASDF1232, Mr. Plain Example, 110
I have a CSV file that i need to rearrange and renecode. I'd like
I have a CSV file that is formatted like: 0.0023709,8.5752e-007,4.847e-008 and I would like
I need to search for lines in a CSV file that end in an
I have a csv file that has like 30,000 rows in it. It also
I have an XSL file that I am generating from CSV from and Object
I have a CSV file with records that need to be sorted and then

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.