Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sometimes I get docs from users that do not use the space bar after a comma, e.g. "Look,this is an example."

In Word 2003, is there any search wildcard that I can use to find those occurences?

I have tried ,? and ,* without success, also ,\? and ,\* are not working.

share|improve this question

2 Answers 2

up vote 9 down vote accepted

I can tell you a simpler way.
Just replace all , with ,<space> where <space> means a blank space and then replace ,<space><space> with ,<space> to account for places where users did put a space after comma.

WARNING: If you use commas in numbers (either as thousand separator or decimal separator), you need to go through the document to correct numbers such as "1,200" which will now be rendered as "1, 200" .

share|improve this answer
2  
Why do you mean that this way is simpler? It takes two steps instead of one ;) –  duDE Aug 4 at 12:10
5  
Perhaps not simpler, but this is much easier to remember than [!<]?,[!>]? especially if you're not familiar with RegEx's. I'd have several steps when using the top one - find Notepad doc with string (or open this SE page), copy string, paste string, run. Don't think I'd trust my brain to recall it by heart for at least the first few times. –  Kai Aug 4 at 15:05
1  
The other answer is really interesting, I'm not a Word guru but it is neat to know it supports some RegEx out-of-the-box, so to speak. This one though is also a great answer too for its simplicity. –  David Zemens Aug 5 at 3:54
    
I have chosen this answer as the best answer because the solution of duDe does not work with Word 2003 which was specifically asked for. Thanks @tumchaaditya for this nice hack. –  Echt Einfach TV Aug 5 at 4:22

You can use this pattern:

[!<]?,[!>]?

That means: find a comma character between any characters, just not at the beginning of the word and not on the end of the word.

So that in the example below, one would find only the comma at "3,a" (but NOT those at: ",1" and "c,")

,123,abc,
share|improve this answer
    
Is THAT valid for MS WORD? If YES: Where do I find more info on this? –  Hannu Aug 4 at 11:23
1  
Yes it is. office.microsoft.com/en-us/help/… –  duDE Aug 4 at 11:24
11  
Thanks. I've always considered the search function in Word ' deficient' - now I found out it was my knowledge that was deficient. –  Hannu Aug 4 at 11:30
    
@Hannu: Glad to help! If you found the answer helpful fill free to upvote it ;) –  duDE Aug 4 at 11:39
2  
@duDE Worked for me in Word 2010 as long as I had "Use wildcards" selected/checked –  Halfwarr Aug 4 at 21:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.