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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:57:33+00:00 2026-06-10T18:57:33+00:00

EDIT: For those having issues with mysql data that won’t get rid of white

  • 0

EDIT:

For those having issues with mysql data that won’t get rid of white spaces between rows. It’s because of deep tabbed indents due to an issue when copy pasting from editors/word documents.

http://bugs.mysql.com/bug.php?id=49611

Here is the bug that doesn’t allow me to fix this issue, it’s because of deep indents, it’s a MYSQL bug that won’t be fixed.

PS: Message to community, Thanks to the guys that downvoted this question without giving time to properly formulate the issue. It’s a debug process, you can let people know if you need something instead of acting rude and attacking the questioner, after all as the poster I’m likely to read and see what you need. If I knew what was needed to diagnose the issue, I would’ve found it and would not be posting here. Since I posted here, it means I don’t know where to look as to identify if the issue is a MYSQL one or a PHP one. Be polite with your community guys, don’t act like wolves trying to bite someone’s head off all the time because they didn’t give you everything you wanted right off the bat.. Take care.


Here is the raw paste from the database:

    one two three











one two three





one two three





one two three





one two three

Why is it still being like this? I str_replaced  ‘s and \n\n\n’s . I don’t want to get rid of 2 \n’s due to the format of the text I need in between the text.

The result I’m looking for is :

 one two three

 one two three

 one two three
 one two three

Meaning max 2 \n’s.

  • 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-10T18:57:35+00:00Added an answer on June 10, 2026 at 6:57 pm

    This might be what you are after:

    $normalized = preg_replace('~(\r?\n\r?){3+}~', "\n\n", $original);
    

    But hey, it’s hard to say. You want to keep stack overflow a happy place, you put some effort to posting a question.

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

Sidebar

Related Questions

The website that I'm currently working on is having a few issues with Webkit
I'm having issues with data persisting inside of multiple instances of objects I'm creating.
My current solution will suck sometimes EDIT For those who don't understand,see this example:
Possible Duplicate: C# 'var' keyword versus explicitly defined variables EDIT: For those who are
EDIT: I was an idiot. I simply had an image that was vertically long,
I've got a Controller ActionResult that looks like this Function Edit(ByVal user As Domain.User,
Maybe im just an idiot, but I am having serious issues mapping relationships with
I'm trying to port the speakhere example into another app and I'm having issues.
I am having some issues with nested models in a form, using Rails 3.1rc4.
I'm trying to load data into a mysql table using LOAD DATA LOCAL INFILE

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.