P
Paul B.
Hi,
I'm having a greediness problem with Word 2003's wildcards. I'm trying to find each occurrence of the beginning of a line, followed by some text, then ending with "Page " and then a number. Here's an example:
This is a Chapter Name Page 13
So with wildcards enabled, I tried ^13?{10,65}Page [0-9]{1,2}
The problem there is that Word applies the {10,65} limiter to the entire previous expression, so I get multiple paragraphs selected. In effect, I get from the cursor point to the next Find hit.
So I tried placing the '?' in parentheses, I tried using [a-zA-Z ] instead of '?', and none of these brought any hits. That I don't understand.
The immediate question is how can I limit my hit to only one paragraph?
Thanks for any insight.
I'm having a greediness problem with Word 2003's wildcards. I'm trying to find each occurrence of the beginning of a line, followed by some text, then ending with "Page " and then a number. Here's an example:
This is a Chapter Name Page 13
So with wildcards enabled, I tried ^13?{10,65}Page [0-9]{1,2}
The problem there is that Word applies the {10,65} limiter to the entire previous expression, so I get multiple paragraphs selected. In effect, I get from the cursor point to the next Find hit.
So I tried placing the '?' in parentheses, I tried using [a-zA-Z ] instead of '?', and none of these brought any hits. That I don't understand.
The immediate question is how can I limit my hit to only one paragraph?
Thanks for any insight.