#1
|
|||
|
|||
Find & Replace: Wildcards (except this pattern)
Quote:
Code:
\<[a-zA-Z]@\> If I use Code:
[!\<[a-zA-Z]@\>] |
#2
|
||||
|
||||
Try:
Find = [!\<\>][!ch\<\>][!ts\<\>][!lms\<\>]{1,2}[!\<\>]{1,}
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
If replacing the found results with "" (nothing),
it returns like this: Quote:
Quote:
|
#4
|
||||
|
||||
Perhaps you would do better to highlight everything first, then un-highlight the tags (e.g. Find = [\<][ch][ts][ms][l\>]{1,2}). For deletion purposes, you could then delete anything that's still highlighted.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Quote:
Quote:
|
#6
|
||||
|
||||
For that, you would specify the replacement text as:
^& and click on Format>Highlight twice. The first time will add 'Highlight' below the Replace box and the second time will change that to 'Not Highlight'.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#7
|
|||
|
|||
After a few trials and finally I got what you'd meant, well, that seems the trick you taught me:
1. Highlight (in yellow, for example) all the texts; 2. Find & Replace Find: "[\<][ch][ts][ms][l\>]{1,2}" Replace: "^&" (Format: Not Highlight) 3. Replace the same texts to be found without highlight (un-highlight) 4. Find & Replace Find: "*" (Format: Highlight) Replace: "" It will replace all the texts (highlighted, and those are texts excluding "<html>" or "<css>") with nothing (same as deleting them) It works wonders. Thank you. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
best way to use search/replace wildcards in this scenario? | dylansmith | PowerPoint | 3 | 03-04-2023 08:55 PM |
wildcards in find & replace to reverse word order | jeffk | Word | 3 | 11-11-2012 01:47 PM |
Bad view when using Find and Find & Replace - Word places found string on top line | paulkaye | Word | 4 | 12-06-2011 11:05 PM |
Word 2010: Wildcards Replace | tinfanide | Word | 2 | 09-10-2011 10:40 AM |
Any wildcards search and replace in Powerpoint 2010? | tinfanide | PowerPoint | 0 | 09-10-2011 02:17 AM |