Reply
 
Thread Tools Display Modes
  #1   Report Post  
Barcode Barcode is offline
Junior Member
 
Posts: 0
Default How to replace text with [ ] around it?

I have a document that has the time or the date and time enclosed in [ ] at the start of every line as per below.

[12:14:16 PM] ld asdd sdad
[25/03/2013 10:35:45 AM] sds dssdffd sdfsdf
[12:14:46 PM] sususuhbhg shsygd sfsf

All dates and times are different. I wish to delete the [] and everything in between them. I have tried using wild card replacing but have not been successful.

How do I go about doing this? Word 2010.

Bob
  #2   Report Post  
Barcode Barcode is offline
Junior Member
 
Posts: 0
Default

I've now solved the problem. Very simple. I used \[*\] with 'use wildcards' on.

Bob
  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default How to replace text with [ ] around it?

If you set "Find what" to \[*\] and leave "Replace with" blank, it should
work.

I'm assuming that there are no other [] in the document that you want to
keep.

--
Stefan Blom
Microsoft Word MVP




"Barcode" wrote in message
...

I have a document that has the time or the date and time enclosed in [ ]
at the start of every line as per below.

[12:14:16 PM] ld asdd sdad
[25/03/2013 10:35:45 AM] sds dssdffd sdfsdf
[12:14:46 PM] sususuhbhg shsygd sfsf

All dates and times are different. I wish to delete the [] and
everything in between them. I have tried using wild card replacing but
have not been successful.

How do I go about doing this? Word 2010.

Bob




--
Barcode


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I replace color of selected text using the replace feature bb Microsoft Word Help 5 June 17th 08 05:19 AM
Can't get rid of replace text in the "Replace with" livetohike Microsoft Word Help 2 September 5th 07 10:30 PM
Word - auto replace old text with new text (names) Carl Microsoft Word Help 1 August 29th 07 01:05 AM
Can't select text and delete with backspace or replace with text NisaacK78 Microsoft Word Help 1 March 31st 06 03:07 PM
In Justify why does inserted text sometimes replace existing text ryebri Microsoft Word Help 1 March 27th 06 01:37 AM


All times are GMT +1. The time now is 10:18 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"