Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2013, 05:09 PM
Barcode Barcode is offline How to replace text with [] around it? Windows XP How to replace text with [] around it? Office 2010 32bit
Novice
How to replace text with [] around it?
 
Join Date: Apr 2013
Posts: 3
Barcode is on a distinguished road
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

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?

Bob

Last edited by Barcode; 04-03-2013 at 09:40 PM.
Reply With Quote
  #2  
Old 04-03-2013, 11:57 PM
macropod's Avatar
macropod macropod is offline How to replace text with [] around it? Windows 7 64bit How to replace text with [] around it? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You can do the with a wildcard Find/Replace, where:
Find = \[*\]
Replace = nothing
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 04-04-2013, 01:06 AM
Barcode Barcode is offline How to replace text with [] around it? Windows XP How to replace text with [] around it? Office 2010 32bit
Novice
How to replace text with [] around it?
 
Join Date: Apr 2013
Posts: 3
Barcode is on a distinguished road
Default

Paul
Thank you very much for replying. I tried that and I get 0 replacements
Bob
Reply With Quote
  #4  
Old 04-04-2013, 01:15 AM
macropod's Avatar
macropod macropod is offline How to replace text with [] around it? Windows 7 64bit How to replace text with [] around it? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Did you check the 'use wildcards' option?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 04-04-2013, 03:09 AM
Barcode Barcode is offline How to replace text with [] around it? Windows XP How to replace text with [] around it? Office 2010 32bit
Novice
How to replace text with [] around it?
 
Join Date: Apr 2013
Posts: 3
Barcode is on a distinguished road
Default

No I didn't. It now works a treat. Thanks for your help Paul, much appreciated.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to replace text with [] around it? Replace text in multiple documents? Roscoe Word VBA 7 07-31-2017 04:02 PM
How to replace text with [] around it? Macro to find text and replace with form field containing that text iiiiifffff Word VBA 16 06-04-2016 01:47 AM
How to replace text with [] around it? Find and replace a string of text errtu Word 1 01-31-2013 02:09 PM
Mac Word - replace within selected text only. bakerbj Word 0 10-31-2011 11:47 PM
Replace formatting with text eyehefbee Word 2 11-09-2009 02:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft