M
muybn
I'm frustrated with the following wildcard Search statement that's only
finding "Wednesday" as the day of the week:
<[A-Z][a-z]{2,5}day>,^32<[A-Z][a-z]{2,8}>^32<[0-9]{1,2}>,^32<[1-2][0-9]{3}>^13
By rights, it should find any day of the week (with the phrase
"[A-Z][a-z]{2,5}day"). Samples of what it should find (in a paragraph) are:
Sunday, November 14, 1982
Wednesday, June 10, 2002
Saturday, May 8, 1007
All min/max constraints work just fine (e.g., {2,8}, {1,2} and {3}), but the
first one ({2,5}) is only interpreted by Word as {5}. However, it should
search for the second two letters in Sunday, Monday and Friday; the 2nd-5th
letters in Tuesday; the 2nd-7th letters in Wednesday; and the 2nd-6th letters
in Thursday and Saturday. (Use the above samples in a document and you'll see
what I mean.)
Can anyone see what I'm doing wrong? Anything else I do (such as "[a-z]{3}"
instead of "day") produces an error of "The Find What text contains a Pattern
Match which is too complex."
finding "Wednesday" as the day of the week:
<[A-Z][a-z]{2,5}day>,^32<[A-Z][a-z]{2,8}>^32<[0-9]{1,2}>,^32<[1-2][0-9]{3}>^13
By rights, it should find any day of the week (with the phrase
"[A-Z][a-z]{2,5}day"). Samples of what it should find (in a paragraph) are:
Sunday, November 14, 1982
Wednesday, June 10, 2002
Saturday, May 8, 1007
All min/max constraints work just fine (e.g., {2,8}, {1,2} and {3}), but the
first one ({2,5}) is only interpreted by Word as {5}. However, it should
search for the second two letters in Sunday, Monday and Friday; the 2nd-5th
letters in Tuesday; the 2nd-7th letters in Wednesday; and the 2nd-6th letters
in Thursday and Saturday. (Use the above samples in a document and you'll see
what I mean.)
Can anyone see what I'm doing wrong? Anything else I do (such as "[a-z]{3}"
instead of "day") produces an error of "The Find What text contains a Pattern
Match which is too complex."