I've been asking myself the same question a lot lately. Have you come up
with any definitive answers yet? It's just trial and error for me, and
would be good to know if there are some general principles to follow.
George Lee wrote:
Thanks. I know these examples were contrived and I have workarounds.
18-Mar-10
Thanks. I know these examples were contrived and I have workarounds. I was
asking more what the conditions of a "too complex" of a pattern were.
Microsoft does not seem to publish those.
:
Previous Posts In This Thread:
Word Search is "too complex" Question
"The Find What text contains a Pattern Match expression which is too
complex."
What is the rule for being too complex? I cannot determine the rule just
by
playing with it. it is not character limited (other than 255), and it does
not
seem to be "item" limited (like no more than ten []{} pairing).
Can you post what the pattern is?
Can you post what the pattern is?
George Lee wrote:
--
Gerry
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/word-programming/201003/1
Simple cases:[0-9][0-9][0-9][0-9][0-9][0-9][0-9] ???
Simple cases:
[0-9][0-9][0-9][0-9][0-9][0-9][0-9] ??? OK
[0-9]@[0-9]@[0-9]@[0-9]@[0-9]@[0-9]@[0-9]@ ???OK
[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ???too long
From these it looks like seven brackets are the maximum. Is there
confirmation of this somewhere? Is this the only condition?
:
Instead of constructions such as:[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]
Instead of constructions such as:
[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9] ,
Use
[0-9]{#}
where # is the number of digits that you are seeking. or {#,} where you
are
seeking at least # digits, {#,##} where you are seeking between # and ##
digits.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Thanks. I know these examples were contrived and I have workarounds.
Thanks. I know these examples were contrived and I have workarounds. I was
asking more what the conditions of a "too complex" of a pattern were.
Microsoft does not seem to publish those.
:
Submitted via EggHeadCafe - Software Developer Portal of Choice
Get Silverlight 4 Installed: Tips and Tricks
http://www.eggheadcafe.com/tutorial...b-f54c56a64ed9/get-silverlight-4-install.aspx