Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2019, 12:11 PM
CrossReach CrossReach is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 10 Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2019
Advanced Beginner
Need Wild Card for Deleting Square Brackets with Differing Numbers inside
 
Join Date: Jun 2015
Location: In my head
Posts: 70
CrossReach is on a distinguished road
Default Need Wild Card for Deleting Square Brackets with Differing Numbers inside

Is there a way to use wild cards to delete all the square brackets in a document?



They go from [p. 1] to [p. 436]
Reply With Quote
  #2  
Old 11-24-2019, 02:06 PM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 10 Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,872
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

If you want to get rid of all brackets in a document, you can do it in two steps without wildcards: (1) Replace All [ with nothing and then (2) Replace All ] with nothing.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #3  
Old 11-24-2019, 02:38 PM
macropod's Avatar
macropod macropod is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 7 64bit Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

Or in one step using wildcards:
Find = [\[\]]
Replace = nothing
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 11-24-2019, 02:56 PM
CrossReach CrossReach is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 10 Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2019
Advanced Beginner
Need Wild Card for Deleting Square Brackets with Differing Numbers inside
 
Join Date: Jun 2015
Location: In my head
Posts: 70
CrossReach is on a distinguished road
Default

Quote:
Originally Posted by Stefan Blom View Post
If you want to get rid of all brackets in a document, you can do it in two steps without wildcards: (1) Replace All [ with nothing and then (2) Replace All ] with nothing.
Sorry, I should have been clearer I want the brackets and their contents deleted without having to go theough them manually.
Reply With Quote
  #5  
Old 11-24-2019, 02:58 PM
macropod's Avatar
macropod macropod is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 7 64bit Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
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

In that case, using wildcards:
Find = \[*\]
Replace = nothing
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 11-25-2019, 04:21 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 10 Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2019
Moderator
 
Join Date: Aug 2011
Posts: 3,872
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Quote:
Originally Posted by CrossReach View Post
Sorry, I should have been clearer I want the brackets and their contents deleted without having to go theough them manually.
Indeed, getting rid of the contents as well would require a wildcard find & replace. See Paul's reply.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #7  
Old 11-26-2019, 01:02 PM
CrossReach CrossReach is offline Need Wild Card for Deleting Square Brackets with Differing Numbers inside Windows 10 Need Wild Card for Deleting Square Brackets with Differing Numbers inside Office 2019
Advanced Beginner
Need Wild Card for Deleting Square Brackets with Differing Numbers inside
 
Join Date: Jun 2015
Location: In my head
Posts: 70
CrossReach is on a distinguished road
Default

That did it. Like magic. Obrigado senhors!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Wild Card for Deleting Square Brackets with Differing Numbers inside Wild card confusion Ulodesk Word 4 08-23-2018 06:06 AM
How to use wild card in VBA for Advance Filter? LearnerExcel Excel Programming 1 10-09-2017 12:27 AM
Need Wild Card for Deleting Square Brackets with Differing Numbers inside Bold numbers between square brackets jeffreybrown Word 4 02-13-2017 04:32 PM
Need Wild Card for Deleting Square Brackets with Differing Numbers inside Help with: Replace and reformat numbers inside square brackets johnbrowny Word 1 02-13-2016 06:45 PM
Wild card to highlight capitalised terms? bertietheblue Word 2 02-08-2013 04:44 PM

Other Forums: Access Forums

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


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