Appending to text in Microsoft Word using Wildcards and find & replace -


right have list of 5000 terms in ms word.

i place "--" before , after every number. place -- @ end of translated english sentence.

the text looks like:

1 le -- the; him, her, it, them -- vive la politique, vive l'amour -- long live politics, long live love

2 de-- of, from, some, -- il ne rêve que d'argent et de plaisirs -- dreams of money , pleasure

3 un -- a, an, 1 -- je me suis cassé un ongle -- broke 1 of fingernails

4 à -- to, at, in -- ils restent à l'école le plus longtemps possible -- remain @ school long possible

therefore corrected text like:

-- 1 -- le -- the; him, her, it, them -- vive la politique, vive l'amour -- long live politics, long live love --

-- 2 -- de-- of, from, some, -- il ne rêve que d'argent et de plaisirs -- dreams of money , pleasure --

-- 3 -- un -- a, an, 1 -- je me suis cassé un ongle -- broke 1 of fingernails --

-- 4 -- à -- to, at, in -- ils restent à l'école le plus longtemps possible -- remain @ school long possible --

i'm familiar msoffice's regarding use of wildcard characters find or replace text haven't been able figure out appropriate strings.

you should include have tried next time.

find what: ([0-9]{1,4})[ ]

replace with: --\1--

additional [ ] denote space. can put space.

tested in windos 7 pro. 64 bit, office 2010 32 bit.

depending on environment, list separator may change. me comma {1,4}. environments semicolon this. {1;4}.

to make more specific can include regex this. ([0-9]{1,4})[ ]([àldua]) , replace --\1-- \2


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -