Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

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

Advertisements


#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






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP