J
jfaughnan
I am unable in Word 2003 SP2 to find all lines ending in a search
string. I've reviewed Word's help file and O'Reilly's Word Annoyances.
I see a lot of powerful search features, some of which resemble UNIX
GREP. What's missing, however, are the GREP operators that anchor a
search string between the start of a line and the 'end of line'. Word
has a search operator for the paragraph return (^p if wildcard search
is disabled, else use ^13), but not an operator to anchor to the start
of line.
If I use a string like ^13*(my search phrase)^13 it matches what I
want, but it also includes ^13 as a valid character, so the search
spans additional lines.
Is there a way to constrain a search pattern to a "line" or a
"paragraph"?
Thanks!
john
(e-mail address removed)
meta: jfaughnan, jgfaughnan, GREP, Word, search, line search,
constrain, limit, pattern match
string. I've reviewed Word's help file and O'Reilly's Word Annoyances.
I see a lot of powerful search features, some of which resemble UNIX
GREP. What's missing, however, are the GREP operators that anchor a
search string between the start of a line and the 'end of line'. Word
has a search operator for the paragraph return (^p if wildcard search
is disabled, else use ^13), but not an operator to anchor to the start
of line.
If I use a string like ^13*(my search phrase)^13 it matches what I
want, but it also includes ^13 as a valid character, so the search
spans additional lines.
Is there a way to constrain a search pattern to a "line" or a
"paragraph"?
Thanks!
john
(e-mail address removed)
meta: jfaughnan, jgfaughnan, GREP, Word, search, line search,
constrain, limit, pattern match