Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-26-2009, 11:33 AM
chgeiselmann chgeiselmann is offline Regex in Word: Replaced strings are in disorder Windows 7 64bit Regex in Word: Replaced strings are in disorder Office 2010
Novice
Regex in Word: Replaced strings are in disorder
 
Join Date: Apr 2009
Location: Munich
Posts: 3
chgeiselmann is on a distinguished road
Default Regex in Word: Replaced strings are in disorder

Dear all,



I have a problem with the search/replace tool in MS Word (Word 2000, on a Win XP SP2 machine).

I am using pattern maching (regular expressions, regex) in order to search strings in long texts, and replace it.

For example I would be looking for (Mouse)([a-zA-Z0-9]) and replace it with \1 \2 {mind the space between the two variables!}, meaning: 'Search for things like "Mouse3" and replace it with "Mouse 3" ' and so on. (This is just an example.)

My problem: Various weeks ago this stoped to work as it should (and as it actually did). Since then, the output strings are invariably in a strange disorder. Instead of "Mouse 3" something like "Mouse3 " appeears. [In this case: the space is put on the end instead of the middle of the string. - This is so not only with spaces but with any characters.]

This appears in all kinds of search/replace strings.

I have been asking for help in other forums, but nobody had a similar problem, or an explication, or a workaround.

Any idea what could be the reason?

Thank you for your help,

Christian
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
MSWord Placeholders Bug; replaced pics don't retain position za105 Word 0 01-23-2009 10:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft