#1
|
|||
|
|||
Editing words with specific sign
Hi. I'm struggling with I think easy task. How I can edit words preceded with specific sign?
example: @XXX @ZZZ @YYY to: XXX ZZZ YYY How I can change every word in front of which there is a @ sign? |
#2
|
||||
|
||||
To find every instance of the @ symbol followed immediately by a letter, with wildcards on
Find: "\@<([a-zA-Z])" Replace: "\1" Note that this will also find a@a and 2@a so this is potentially not exactly what you wanted.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
||||
|
||||
Alternatively, and more comprehensively, a wildcard Find/Replace with:
Find = ([ ^s^13^l^t])\@<([a-zA-Z]@>) Replace = \1\2
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#4
|
||||
|
||||
Paul
Does that find string work for you when the paragraph begins with @xxx?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#5
|
||||
|
||||
Expanded to incorporate that and a number of others, too, though changing the format of the preceding character in such cases might not be desirable.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to highlight lines containing specific words | SixStringSW | Word VBA | 4 | 06-03-2018 03:57 PM |
Open file which contains specific words in title | Nick70 | PowerPoint | 2 | 06-08-2016 06:55 AM |
Word 2003 Editing: Disappearing Letters and Words | dddave | Word | 2 | 12-01-2015 05:45 PM |
How to allow specific double words in spellcheck | Wyndham | Word | 5 | 02-06-2014 10:44 AM |
Need VBA For Macro On How To Remove Specific Words | netchie | Word VBA | 6 | 08-28-2012 03:37 PM |