Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-19-2017, 08:24 AM
slaycock slaycock is offline Add a return between two square brackets Windows 7 64bit Add a return between two square brackets Office 2013
Expert
 
Join Date: Sep 2013
Posts: 255
slaycock is on a distinguished road
Default

What you are seeing is the ongoing demonstration of my lack of checking due to haste (I'm actually working at home this weekend fighting a deadline).



What has happened is that we have two errors. One in the find field and one in the replace field.

In the find field we have the ][ the wrong way round. The find field should be
([^093])(*)([^091] not ([^091])(*)([^093]


The error in the replace field comes adding the (*) to the search text. We now have three fields defined by () (Smacks head on wall several times because checking back I can see that my attempt at () in our earlier discussion came out as 9 0. This is because my new keyboard has the number and symbols the wrong way round so my brain types ( but my reflexes type 9 because 9 is above the ( on my new (soon to be ebayed) keyboard)

By inserting the (*) your bracket fields have now become fields 1 and 3. By using fields 1 and 2 in the replace text we are replacing the found text with the [ (in this case) and the text found by the (*) (which in this case is everything between the [ and ])



So changing the replace text to \1^p\3 should now get us to the place where you want to be.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a return between two square brackets Bold numbers between square brackets jeffreybrown Word 4 02-13-2017 04:32 PM
Add a return between two square brackets Help with: Replace and reformat numbers inside square brackets johnbrowny Word 1 02-13-2016 06:45 PM
Gray square brackets waldux Word 8 09-25-2013 04:14 PM
Add a return between two square brackets square brackets and grey background – why? eNGiNe Word 2 11-21-2012 01:06 AM
Add a return between two square brackets Filled square daksein Drawing and Graphics 4 06-21-2011 02:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:06 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