Prev: problem while pasting from pdf to word ?
Next: Why does Word open unexpectedly when I turn on my computer?
From: kaston on 1 Nov 2009 13:20 i want to do a regular expression search in a word doc that will let me find two strings separated by say 50 characters or less, assuming carriage returns are considered characters. so if i want to find the strings "blah" and "ya" i tried the expression blah?{1,50}ya hoping that the ?{1,50} would specify 1-50 single characters of any type. but this finds blah and ya even if they are separated by hundreds of characters. what am i doing wrong? thanks, kaston
From: macropod on 1 Nov 2009 15:11
Hi kaston, Without seeing the rest of the expression, it's a bit hard to say what you might be doing wrong. -- Cheers macropod [Microsoft MVP - Word] "kaston" <kaston(a)discussions.microsoft.com> wrote in message news:2C24D833-5714-4505-B4A7-819F36DE34AD(a)microsoft.com... >i want to do a regular expression search in a word doc that will let me find > two strings separated by say 50 characters or less, assuming carriage returns > are considered characters. so if i want to find the strings "blah" and "ya" > i tried the expression blah?{1,50}ya hoping that the ?{1,50} would specify > 1-50 single characters of any type. but this finds blah and ya even if they > are separated by hundreds of characters. what am i doing wrong? > > thanks, > kaston |