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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:31:56+00:00 2026-06-17T11:31:56+00:00

I have a kinda big file which looks like this: 100] Armor=769 101] Armor=769

  • 0

I have a kinda big file which looks like this:

100]
Armor=769       
101]
Armor=769       
102]
Armor=769       
103]
Armor=772       
104]
Armor=772       
108]
Armor=770       
109]
Armor=773       
110]
Armor=773       
114]
Armor=771       
115]
Armor=774       
116]
Armor=774       
242]
Armor=778       
243]
Armor=779   

I’ve already been playing around with notepad++, that’s how I got this result , but now I am STUCK. What i want is: Add to every second line a [ , so 100], 101] and 102] are now enclosed in brackets. I can’t just search for “1” and replace with [1 , the numbers are random, and get a lot bigger. I guess I have to go with regex here, which is a problem, because I have no idea how!

  • 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-17T11:31:57+00:00Added an answer on June 17, 2026 at 11:31 am

    i cant just search for “1” and replace with [1, the numbers are random

    Then search for \d at the beginning of a line, capture it in group 1, and replace it with – [$1, where $1 is the capture group.

    Replace – ^(\d) with [$1

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

Sidebar

Related Questions

I have a webpage with a form, which looks kinda like this: @using (Html.BeginForm(MyAction,
I have a log file which has a format of this kind: DATE-TIME ###
I have this kinda template text : Hello {#Name#}, Thanks for coming blah on
I have seen for some time popups without window and it looks like a
We have created a multi-threaded application which process/parse big files (few hundred MB's) simultaneously.
I came across a situation where I have a pretty big file that I
I have a big string (let's call it a CSV file, though it isn't
i have a big problem. i try to implement a kind of speedometer. i
I'm kinda new to javascript running on Apache but I have the following problem.
Kinda stuck here... I have an application with lets say 5000 rows of data

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.