Jump to content

Welcome Guest to Geeks to Go - Register now for FREE
Geeks To Go is a helpful hub, where thousands of friendly volunteers serve up answers and support. Get free advice from the experts. Feel free to browse the site as a guest. However, you must log in to reply to existing topics or start a new topic of your own, and enjoy all this forum has to offer. Additionally, if you can assist another member by sharing your knowledge, please post a reply! Best of all - Registration and all assistance, is FREE! Learn more about How it Works. Infected? Malware Cleaning Guide. What are you waiting for?
Create an Account Login to Account

text editing


  • Please log in to reply

#1
ezniZ

ezniZ

    New Member

  • Member
  • Pip
  • 1 posts
I use note pad or office word to find and replace when editing a text file.
This only works when I find and replace the exact text.

What I want to do is replace all the brackets and numbers within the brackets and still leave in place the IP address numbers that follow the brackets.
example...

[12:55:00]85.11.149.150:3128:
[12:55:00]41.215.254.4:80:
[12:55:02]125.244.54.130:8080:
[12:55:02]202.158.165.82:80:
[12:55:04]148.244.235.249:3128:
[12:55:04]59.144.165.23:8080:
[12:55:04]195.175.37.6:8080:
[12:55:04]83.59.35.193:6588:
[12:55:04]195.175.37.8:80:
[12:55:06]218.3.241.12:8080:
[12:55:06]81.64.100.170:7212:
[12:55:06]61.106.178.100:8080:
[12:55:06]59.159.243.243:80:
[12:55:08]142.103.2.2:3124:
[12:55:08]61.36.44.25:8080:
[12:55:08]217.11.62.68:3128:

Is there a text editor that will let me do this, the numbers within the brackets are not the same.
If they were the same I would have no problem.
Because they are not the same I would have to delete them seperarly and I have about a thousand of them, very time consuming.

Thanks
ezniZ
  • 0

Similar Topics: text editing     x


#2
Vino Rosso

Vino Rosso

    Visiting Staff

  • Visiting Consultant
  • 235 posts
Have you got Excel? If so, you could use =MID(cell,11,20)

For example, put [12:55:00]85.11.149.150:3128: in A1 and =MID(A1,11,20) in B1

Some text editors will do similar.
  • 0

#3
Vino Rosso

Vino Rosso

    Visiting Staff

  • Visiting Consultant
  • 235 posts
An easier option, download/install Notepad++ (if you haven't got it installed).

Import the text; hold hold Alt and highlight the text you don't want; press Delete.
  • 0

#4
Vino Rosso

Vino Rosso

    Visiting Staff

  • Visiting Consultant
  • 235 posts
Last word from me... just discovered you can do what I suggested with Notepad++ in MS Word as well. So, if you've got MS Word, try that!
  • 0


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

featured