Office word

Status
Not open for further replies.

ezniZ

Distinguished
Oct 15, 2011
2
0
18,510
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.

I want to replace all of a text within two brackets,
example.... [12:55:00]
[12:55:02]
[12:55:05]

As you can see the numbers keep changing, the problem is that I have about 1000 of these that I would like to replace with a blank space, or with nothing.

Is there a text editor that will do this??
I tried using office and inserting what they call wild cards but nothing seems to work for me.

Thanks,
 

ezniZ

Distinguished
Oct 15, 2011
2
0
18,510
I don't understand what you are saying when you say is this for subtitle.

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

 
You can use wildcards in the search and replace but you need to make sure that the pattern only shows up in those areas or you are liable to replace all sorts of things. For example 12:**:** replace with " " will replace everything that has 12:xx:xx in the text with a space.

Look here for some pretty powerful search tips http://office.microsoft.com/en-us/word-help/find-and-replace-text-or-other-items-HP005189433.aspx

http://office.microsoft.com/en-us/help/add-power-to-word-searches-with-regular-expressions-HA001087305.aspx
 
Status
Not open for further replies.