![]() |
|
#1
|
|||
|
|||
|
If have many instances of X followed by a number, but I only want to subscript the number if it's proceeded by a single X.
X1 X2 X3 X4 X5 X6 12 23 12 45 A wildcard Find/Replace: Find = [0-9]{1,} Replace = ^& This subscripts everything, but not sure how to isolate the number. |
|
#2
|
||||
|
||||
|
Don't bother trying to isolate the number. Just subscript the lot and then do a second search and replace to make any subscript X into normal size.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#3
|
|||
|
|||
|
Thanks Andrew, but I don't want a number that is all by itself to be subscript.
So, in post #1, those last four numbers should not be subscript. |
|
#4
|
||||
|
||||
|
As Andrew said:
Quote:
A wildcard Find/Replace: Find = X[0-9]{1,} Replace = ^& subscripting the replacement followed by: Find = X with the subscript attribute Replace = ^& removing the subscript.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#5
|
|||
|
|||
|
Ok thanks. I got it now. I had tried that, X[0-9]{1,}, but it wasn't working.
Wasn't working (my fault) because the number after the X is actually a SEQ field. I will now have to switch the strategy to subscripting the SEQ field code when it is displayed. All sorted. Thank you Andrew and Paul. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Spreadsheet with "CR" & "DB" in amount & number columns. | bfisher | Excel | 4 | 09-28-2015 07:03 AM |
Mailing: how to make the "page number" in Word is the same as "row number" in excel w
|
Jamal NUMAN | Word | 1 | 09-03-2011 11:37 AM |
How to choose a "List" for certain "Heading" from "Modify" tool?
|
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
| in WORD, how do i type a 9-digit phone number "xxxxxxxxx" and have it automatically.. | jay8962 | Word | 0 | 04-08-2010 11:08 AM |
Mysterious "Subscript out of range" error
|
rnstewart | Excel | 4 | 12-29-2005 01:04 PM |