search for words separated by 1-n characters?

K

kaston

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
 
M

macropod

Hi kaston,

Without seeing the rest of the expression, it's a bit hard to say what you might be doing wrong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top