#1
|
|||
|
|||
Help with: Replace and reformat numbers inside square brackets
I have a long document containing hundreds of numbers in square brackets that looks like this.
[399] Some of them have two numbers separated by a comma which looks like this. [123, 456] [234 - 678] I would like to be able to find and change the colour of only the numbers within these square brackets only. So they will look like this. [399] [123, 456] [234 - 678] I found this online https://cybertext.wordpress.com/2011...ing-wildcards/ However it changes everything including the square brackets and commas. Resulting in this. [399] [123, 456] [234 - 678] Please help! |
#2
|
||||
|
||||
You can do this with a wildcard Find/Replace, where:
Find = \[[0-9,\- –]{1,}\] Replace = ^& and the replacement parameters include the blue formatting. Note that this will colour the brackets as well.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search+replace all --- [3 dashes] with square wingding | imported_contiw | Word | 14 | 10-04-2017 01:03 PM |
Find and Replace - How to insert brackets around all numbers in a doc | Natedogg | Word | 2 | 05-21-2015 07:16 AM |
Gray square brackets | waldux | Word | 8 | 09-25-2013 04:14 PM |
square brackets and grey background – why? | eNGiNe | Word | 2 | 11-21-2012 01:06 AM |
Please help copy inside brackets | Jana | Word VBA | 49 | 02-05-2012 02:41 PM |