![]() |
#1
|
|||
|
|||
![]()
I'm trying to find all instances of .0%, ignoring anything in front of the decimal, from a mix of numbers that might look like this:
7.0% .0% 0.0% 94.0% In the above list, it should only find one instance: the .0% Any suggestions for how to wildcard the find expression? I started with [!0.].0% which effectively ignores the 0.0%, but catches everything else. I tried something like [!0.-9.].0% but that ignores everything. Ideas? |
#2
|
||||
|
||||
![]()
You could use:
Find = [!0-9].[0-9]% Note that this finds the non-numeric character before the .0% as well. So, if the aim is to delete the .0%, you'd use: Find = ([!0-9]).[0-9]% Replace = \1
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
That doesn't find anything. For example, if you list in Word those four sample values I provided and do a find for [!0-9].[0-9]% it says "... The search item was not found."
|
#4
|
||||
|
||||
![]()
Did you check the 'Use wildcards' option?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
Yes.
I'm using Word 2010. |
#6
|
||||
|
||||
![]()
And are these numbers just in the ordinary text of the document, or are they in table cells?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
![]() Quote:
7.0% .0% 0.0% 94.0% |
#8
|
||||
|
||||
![]()
It would have been helpful if you'd said so at the outset. On its own, the process won't work in tables. You could, however, use a series of wildcard Find/Replace expressions, where:
Find = .[0-9]% Replace = ^s^& Find = ([0-9])^s(.[0-9]%) Replace = \1\2 This will now leave you with the .0%s with a non-breaking space before them, so you can then do a wildcard Find for just those, with: Find = ^s.[0-9]% Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#9
|
|||
|
|||
![]() Quote:
But thank you again for your help. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jsuebersax | Word | 2 | 04-28-2014 05:15 PM |
![]() |
Guloluseus | Project | 3 | 01-31-2014 02:42 PM |
can find and replace instances of the "enter" key? | snunicycler | Word | 7 | 05-02-2013 11:54 PM |
Word 2010 running multiple instances | JBE | Word | 0 | 09-28-2012 06:00 PM |
![]() |
trim | Outlook | 2 | 03-13-2012 11:25 AM |