Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
wildcard search buggy - Part 2
I thought I had my wildcard search problem from here licked:
http://www.microsoft.com/office/comm...7-1b33f6d28a6c Apparently not. When I do a search for the following regex string from the top of the document, it finds and highlights an incorrect result (I believe this is related to the non-highlighted result that led to my previous post on this topic). Hit Find again and the correct result is highlighted. ^m??[a-z]@t[ie ]@5.?.[0-9]@^tBuilding Incident Commander[: ]@?[a-zA-Z ']@Pandemic (Ooh... exciting! I just found a way to cause the non-highlight result. Simply add a few characters of text at the start of the document, then run the search from the start of doc. Voila! no highlight and no "not found" message".) Oddly, when I delete the TC field on the second page, the search works just fine. BTW, searching up from end of doc generally produces the desired results. Since descriptions of problems often suck, I've pasted the XML source of my extremely pared-down Word document below, so that someone can see this firsthand. (I hope this is permitted, as I know of no way to attach documents.) Andrew V ?xml version="1.0" encoding="UTF-8" standalone="yes"? ?mso-application progid="Word.Document"? w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-comffice:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns="urn:schemas-microsoft-comfficeffice" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2" w:macrosPresent="no" w:embeddedObjPresent="no" wcxPresent="no" xml:space="preserve"w:ignoreElements w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/oocumentPropertieso:Title /o:Titleo:AuthorAndrew/o:Authoro:LastAuthorAndrew/o:LastAuthoro:Revision2/o:Revisiono:TotalTime1/o:TotalTimeo:LastPrinted2002-04-11T16:56:00Z/o:LastPrintedo:Created2006-11-16T14:14:00Z/o:Createdo:LastSaved2006-11-16T14:14:00Z/o:LastSavedo:Pages3/o:Pageso:Words16/o:Wordso:Characters125/o:Characterso:Bytes516608/o:Byteso:Lines5/o:Lineso:Paragraphs2/o:Paragraphso:CharactersWithSpaces141/o:CharactersWithSpaceso:Version11.8106/o:Version/oocumentPropertiesw:fontsw:defaultFonts w:ascii="Times New Roman" w:fareast="Times New Roman" w:h-ansi="Times New Roman" w:cs="Times New Roman"/w:font w:name="Wingdings"wanose-1 w:val="05000000000000000000"/w:charset w:val="02"/w:family w:val="Auto"/witch w:val="variable"/w:sig w:usb-0="00000000" w:usb-1="10000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="80000000" w:csb-1="00000000"//w:fontw:font w:name="Arial Unicode MS"w:altName w:val="Arial"/wanose-1 w:val="020B0604020202020204"/w:charset w:val="00"/w:family w:val="Roman"/w:notTrueType/witch w:val="variable"/w:sig w:usb-0="00000003" w:usb-1="00000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="00000001" w:csb-1="00000000"//w:font/w:fontsw:stylesw:versionOfBuiltInStylenames w:val="4"/w:latentStyles w:defLockedState="off" w:latentStyleCount="156"/w:style w:type="paragraph" w:default="on" w:styleId="Normal"w:name w:val="Normal"/w:rsid w:val="00A66534"/w:rPrwx:font wx:val="Times New Roman"/w:sz w:val="24"/w:sz-cs w:val="24"/w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"//w:rPr/w:stylew:style w:type="character" w:default="on" w:styleId="DefaultParagraphFont"w:name w:val="Default Paragraph Font"/w:semiHidden//w:stylew:style w:type="table" w:default="on" w:styleId="TableNormal"w:name w:val="Normal Table"/wx:uiName wx:val="Table Normal"/w:semiHidden/w:rPrwx:font wx:val="Times New Roman"//w:rPrw:tblPrw:tblInd w:w="0" w:type="dxa"/w:tblCellMarw:top w:w="0" w:type="dxa"/w:left w:w="108" w:type="dxa"/w:bottom w:w="0" w:type="dxa"/w:right w:w="108" w:type="dxa"//w:tblCellMar/w:tblPr/w:stylew:style w:type="list" w:default="on" w:styleId="NoList"w:name w:val="No List"/w:semiHidden//w:stylew:style w:type="character" w:styleId="Hyperlink"w:name w:val="Hyperlink"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00BE4E28"/w:rPrw:color w:val="0000FF"/w:u w:val="single"//w:rPr/w:stylew:style w:type="character" w:styleId="PageNumber"w:name w:val="page number"/wx:uiName wx:val="Page Number"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00BE4E28"//w:stylew:style w:type="paragraph" w:styleId="Footer"w:name w:val="footer"/wx:uiName wx:val="Footer"/w:basedOn w:val="Normal"/w:rsid w:val="00BE4E28"/wPrwStyle w:val="Footer"/w:tabsw:tab w:val="center" wos="4320"/w:tab w:val="right" wos="8640"//w:tabswverflowPunct w:val="off"/w:autoSpaceDE w:val="off"/w:autoSpaceDN w:val="off"/w:adjustRightInd w:val="off"/w:textAlignment w:val="baseline"//wPrw:rPrwx:font wx:val="Times New Roman"/w:sz w:val="20"/w:sz-cs w:val="20"//w:rPr/w:stylew:style w:type="character" w:styleId="FollowedHyperlink"w:name w:val="FollowedHyperlink"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00BE4E28"/w:rPrw:color w:val="800080"/w:u w:val="single"//w:rPr/w:stylew:style w:type="character" w:styleId="Strong"w:name w:val="Strong"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00DE49C8"/w:rPrw:b/w:b-cs//w:rPr/w:style/w:stylesw:divsw:div w:id="1463692714"w:bodyDiv w:val="on"/w:marLeft w:val="0"/w:marRight w:val="0"/w:marTop w:val="0"/w:marBottom w:val="0"/w:divBdrw:top w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"/w:left w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"/w:bottom w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"/w:right w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"//w:divBdr/w:div/w:divsw:shapeDefaultso:shapedefaults v:ext="edit" spidmax="6145"/o:shapelayout v:ext="edit"o:idmap v:ext="edit" data="1"//o:shapelayout/w:shapeDefaultsw:docPrw:view w:val="print"/w:zoom wercent="75"/w:activeWritingStyle w:lang="EN-CA" w:vendorID="64" w:dllVersion="131078" w:nlCheck="on" wptionSet="1"/wroofState w:grammar="clean"/w:attachedTemplate w:val=""/w:revisionView w:markup="off"/w:defaultTabStop w:val="720"/w:characterSpacingControl w:val="DontCompress"/wptimizeForBrowser/w:validateAgainstSchema/w:saveInvalidXML w:val="off"/w:ignoreMixedContent w:val="off"/w:compatw:dontAllowFieldEndSelect/w:useWord2002TableStyleRules//w:compatwsp:rsidswsp:rsidRoot wsp:val="009943E1"//wsp:rsids/w:docPrw:bodywx:sectw wsp:rsidR="00164201" wsp:rsidRPr="00164201" wsp:rsidRDefault="00164201" wsp:rsidP="00164201"wPrw:jc w:val="both"//wPrw:r wsp:rsidRPr="00164201"w:br w:type="page"//w:rw:r wsp:rsidRPr="00164201"w:tPart 5.2.11/w:t/w:rw:r wsp:rsidRPr="00164201"w:tab//w:rw:r wsp:rsidRPr="00164201"w:tBuilding Incident Commander €€œ Personal Violence Procedures/w:t/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="begin"//w:rw:r wsp:rsidRPr="00164201"w:instrTexttc "/w:instrText/w:raml:annotation aml:id="0" w:type="Word.Bookmark.Start" w:name="_Toc151028236"/w:r wsp:rsidRPr="00164201"w:instrText5.2.11/w:instrText/w:rw:r wsp:rsidRPr="00164201"w:tab/w:instrTextBuilding Incident Commander €€œ Personal Violence Procedures/w:instrText/w:raml:annotation aml:id="0" w:type="Word.Bookmark.End"/w:r wsp:rsidRPr="00164201"w:instrText" \l 2/w:instrText/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="end"//w:r/ww wsp:rsidR="00164201" wsp:rsidRPr="00164201" wsp:rsidRDefault="00164201" wsp:rsidP="00164201"wPrw:jc w:val="both"//wPr/ww wsp:rsidR="00164201" wsp:rsidRPr="00164201" wsp:rsidRDefault="00164201" wsp:rsidP="00164201"wPrw:jc w:val="both"//wPrw:r wsp:rsidRPr="00164201"w:br w:type="page"//w:rw:r wsp:rsidRPr="00164201"w:tPart 5.2.12/w:t/w:rw:r wsp:rsidRPr="00164201"w:tab//w:rw:r wsp:rsidRPr="00164201"w:tBuilding Incident Commander €€œ Pandemic Influenza Procedures/w:t/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="begin"//w:rw:r wsp:rsidRPr="00164201"w:instrTexttc "/w:instrText/w:raml:annotation aml:id="1" w:type="Word.Bookmark.Start" w:name="_Toc151028237"/w:r wsp:rsidRPr="00164201"w:instrText5.2.12/w:instrText/w:rw:r wsp:rsidRPr="00164201"w:tab/w:instrTextBuilding Incident Commander €€œ Pandemic Influenza Procedures/w:instrText/w:raml:annotation aml:id="1" w:type="Word.Bookmark.End"/w:r wsp:rsidRPr="00164201"w:instrText" \l 2/w:instrText/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="end"//w:r/ww wsp:rsidR="009943E1" wsp:rsidRPr="00164201" wsp:rsidRDefault="009943E1" wsp:rsidP="00C72028"wPrw:spacing w:line="240" w:line-rule="exact"//wPr/ww:sectPr wsp:rsidR="009943E1" wsp:rsidRPr="00164201" wsp:rsidSect="00BE4E28"wgSz w:w="12240" w:h="15840" w:code="1"/wgMar w:top="1080" w:right="1080" w:bottom="1080" w:left="1080" w:header="360" w:footer="360" w:gutter="0"/wgNumType w:start="1"/w:cols w:space="720"/w:docGrid w:line-pitch="360"//w:sectPr/wx:sect/w:body/w:wordDocument |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
wildcard search buggy - Part 2
Hmm... no bites?
"Andrew V" wrote: I thought I had my wildcard search problem from here licked: http://www.microsoft.com/office/comm...7-1b33f6d28a6c Apparently not. When I do a search for the following regex string from the top of the document, it finds and highlights an incorrect result (I believe this is related to the non-highlighted result that led to my previous post on this topic). Hit Find again and the correct result is highlighted. ^m??[a-z]@t[ie ]@5.?.[0-9]@^tBuilding Incident Commander[: ]@?[a-zA-Z ']@Pandemic (Ooh... exciting! I just found a way to cause the non-highlight result. Simply add a few characters of text at the start of the document, then run the search from the start of doc. Voila! no highlight and no "not found" message".) Oddly, when I delete the TC field on the second page, the search works just fine. BTW, searching up from end of doc generally produces the desired results. Since descriptions of problems often suck, I've pasted the XML source of my extremely pared-down Word document below, so that someone can see this firsthand. (I hope this is permitted, as I know of no way to attach documents.) Andrew V ?xml version="1.0" encoding="UTF-8" standalone="yes"? ?mso-application progid="Word.Document"? w:wordDocument xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w10="urn:schemas-microsoft-comffice:word" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns="urn:schemas-microsoft-comfficeffice" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2" w:macrosPresent="no" w:embeddedObjPresent="no" wcxPresent="no" xml:space="preserve"w:ignoreElements w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/oocumentPropertieso:Title /o:Titleo:AuthorAndrew/o:Authoro:LastAuthorAndrew/o:LastAuthoro:Revision2/o:Revisiono:TotalTime1/o:TotalTimeo:LastPrinted2002-04-11T16:56:00Z/o:LastPrintedo:Created2006-11-16T14:14:00Z/o:Createdo:LastSaved2006-11-16T14:14:00Z/o:LastSavedo:Pages3/o:Pageso:Words16/o:Wordso:Characters125/o:Characterso:Bytes516608/o:Byteso:Lines5/o:Lineso:Paragraphs2/o:Paragraphso:CharactersWithSpaces141/o:CharactersWithSpaceso:Version11.8106/o:Version/oocumentPropertiesw:fontsw:defaultFonts w:ascii="Times New Roman" w:fareast="Times New Roman" w:h-ansi="Times New Roman" w:cs="Times New Roman"/w:font w:name="Wingdings"wanose-1 w:val="05000000000000000000"/w:charset w:val="02"/w:family w:val="Auto"/witch w:val="variable"/w:sig w:usb-0="00000000" w:usb-1="10000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="80000000" w:csb-1="00000000"//w:fontw:font w:name="Arial Unicode MS"w:altName w:val="Arial"/wanose-1 w:val="020B0604020202020204"/w:charset w:val="00"/w:family w:val="Roman"/w:notTrueType/witch w:val="variable"/w:sig w:usb-0="00000003" w:usb-1="00000000" w:usb-2="00000000" w:usb-3="00000000" w:csb-0="00000001" w:csb-1="00000000"//w:font/w:fontsw:stylesw:versionOfBuiltInStylenames w:val="4"/w:latentStyles w:defLockedState="off" w:latentStyleCount="156"/w:style w:type="paragraph" w:default="on" w:styleId="Normal"w:name w:val="Normal"/w:rsid w:val="00A66534"/w:rPrwx:font wx:val="Times New Roman"/w:sz w:val="24"/w:sz-cs w:val="24"/w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"//w:rPr/w:stylew:style w:type="character" w:default="on" w:styleId="DefaultParagraphFont"w:name w:val="Default Paragraph Font"/w:semiHidden//w:stylew:style w:type="table" w:default="on" w:styleId="TableNormal"w:name w:val="Normal Table"/wx:uiName wx:val="Table Normal"/w:semiHidden/w:rPrwx:font wx:val="Times New Roman"//w:rPrw:tblPrw:tblInd w:w="0" w:type="dxa"/w:tblCellMarw:top w:w="0" w:type="dxa"/w:left w:w="108" w:type="dxa"/w:bottom w:w="0" w:type="dxa"/w:right w:w="108" w:type="dxa"//w:tblCellMar/w:tblPr/w:stylew:style w:type="list" w:default="on" w:styleId="NoList"w:name w:val="No List"/w:semiHidden//w:stylew:style w:type="character" w:styleId="Hyperlink"w:name w:val="Hyperlink"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00BE4E28"/w:rPrw:color w:val="0000FF"/w:u w:val="single"//w:rPr/w:stylew:style w:type="character" w:styleId="PageNumber"w:name w:val="page number"/wx:uiName wx:val="Page Number"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00BE4E28"//w:stylew:style w:type="paragraph" w:styleId="Footer"w:name w:val="footer"/wx:uiName wx:val="Footer"/w:basedOn w:val="Normal"/w:rsid w:val="00BE4E28"/wPrwStyle w:val="Footer"/w:tabsw:tab w:val="center" wos="4320"/w:tab w:val="right" wos="8640"//w:tabswverflowPunct w:val="off"/w:autoSpaceDE w:val="off"/w:autoSpaceDN w:val="off"/w:adjustRightInd w:val="off"/w:textAlignment w:val="baseline"//wPrw:rPrwx:font wx:val="Times New Roman"/w:sz w:val="20"/w:sz-cs w:val="20"//w:rPr/w:stylew:style w:type="character" w:styleId="FollowedHyperlink"w:name w:val="FollowedHyperlink"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00BE4E28"/w:rPrw:color w:val="800080"/w:u w:val="single"//w:rPr/w:stylew:style w:type="character" w:styleId="Strong"w:name w:val="Strong"/w:basedOn w:val="DefaultParagraphFont"/w:rsid w:val="00DE49C8"/w:rPrw:b/w:b-cs//w:rPr/w:style/w:stylesw:divsw:div w:id="1463692714"w:bodyDiv w:val="on"/w:marLeft w:val="0"/w:marRight w:val="0"/w:marTop w:val="0"/w:marBottom w:val="0"/w:divBdrw:top w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"/w:left w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"/w:bottom w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"/w:right w:val="none" w:sz="0" wx:bdrwidth="0" w:space="0" w:color="auto"//w:divBdr/w:div/w:divsw:shapeDefaultso:shapedefaults v:ext="edit" spidmax="6145"/o:shapelayout v:ext="edit"o:idmap v:ext="edit" data="1"//o:shapelayout/w:shapeDefaultsw:docPrw:view w:val="print"/w:zoom wercent="75"/w:activeWritingStyle w:lang="EN-CA" w:vendorID="64" w:dllVersion="131078" w:nlCheck="on" wptionSet="1"/wroofState w:grammar="clean"/w:attachedTemplate w:val=""/w:revisionView w:markup="off"/w:defaultTabStop w:val="720"/w:characterSpacingControl w:val="DontCompress"/wptimizeForBrowser/w:validateAgainstSchema/w:saveInvalidXML w:val="off"/w:ignoreMixedContent w:val="off"/w:compatw:dontAllowFieldEndSelect/w:useWord2002TableStyleRules//w:compatwsp:rsidswsp:rsidRoot wsp:val="009943E1"//wsp:rsids/w:docPrw:bodywx:sectw wsp:rsidR="00164201" wsp:rsidRPr="00164201" wsp:rsidRDefault="00164201" wsp:rsidP="00164201"wPrw:jc w:val="both"//wPrw:r wsp:rsidRPr="00164201"w:br w:type="page"//w:rw:r wsp:rsidRPr="00164201"w:tPart 5.2.11/w:t/w:rw:r wsp:rsidRPr="00164201"w:tab//w:rw:r wsp:rsidRPr="00164201"w:tBuilding Incident Commander €€œ Personal Violence Procedures/w:t/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="begin"//w:rw:r wsp:rsidRPr="00164201"w:instrTexttc "/w:instrText/w:raml:annotation aml:id="0" w:type="Word.Bookmark.Start" w:name="_Toc151028236"/w:r wsp:rsidRPr="00164201"w:instrText5.2.11/w:instrText/w:rw:r wsp:rsidRPr="00164201"w:tab/w:instrTextBuilding Incident Commander €€œ Personal Violence Procedures/w:instrText/w:raml:annotation aml:id="0" w:type="Word.Bookmark.End"/w:r wsp:rsidRPr="00164201"w:instrText" \l 2/w:instrText/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="end"//w:r/ww wsp:rsidR="00164201" wsp:rsidRPr="00164201" wsp:rsidRDefault="00164201" wsp:rsidP="00164201"wPrw:jc w:val="both"//wPr/ww wsp:rsidR="00164201" wsp:rsidRPr="00164201" wsp:rsidRDefault="00164201" wsp:rsidP="00164201"wPrw:jc w:val="both"//wPrw:r wsp:rsidRPr="00164201"w:br w:type="page"//w:rw:r wsp:rsidRPr="00164201"w:tPart 5.2.12/w:t/w:rw:r wsp:rsidRPr="00164201"w:tab//w:rw:r wsp:rsidRPr="00164201"w:tBuilding Incident Commander €€œ Pandemic Influenza Procedures/w:t/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="begin"//w:rw:r wsp:rsidRPr="00164201"w:instrTexttc "/w:instrText/w:raml:annotation aml:id="1" w:type="Word.Bookmark.Start" w:name="_Toc151028237"/w:r wsp:rsidRPr="00164201"w:instrText5.2.12/w:instrText/w:rw:r wsp:rsidRPr="00164201"w:tab/w:instrTextBuilding Incident Commander €€œ Pandemic Influenza Procedures/w:instrText/w:raml:annotation aml:id="1" w:type="Word.Bookmark.End"/w:r wsp:rsidRPr="00164201"w:instrText" \l 2/w:instrText/w:rw:r wsp:rsidR="00BE4E28" wsp:rsidRPr="00164201"w:fldChar w:fldCharType="end"//w:r/ww wsp:rsidR="009943E1" wsp:rsidRPr="00164201" wsp:rsidRDefault="009943E1" wsp:rsidP="00C72028"wPrw:spacing w:line="240" w:line-rule="exact"//wPr/ww:sectPr wsp:rsidR="009943E1" wsp:rsidRPr="00164201" wsp:rsidSect="00BE4E28"wgSz w:w="12240" w:h="15840" w:code="1"/wgMar w:top="1080" w:right="1080" w:bottom="1080" w:left="1080" w:header="360" w:footer="360" w:gutter="0"/wgNumType w:start="1"/w:cols w:space="720"/w:docGrid w:line-pitch="360"//w:sectPr/wx:sect/w:body/w:wordDocument |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Wildcard search... buggy? | Microsoft Word Help | |||
Wildcard search help. please? | Microsoft Word Help | |||
Wildcard search finds okay, but replaces wrong?? | Microsoft Word Help | |||
File Search using the asterisk (*) wildcard | Microsoft Word Help | |||
How do I create a search in a defined part of my Intranet? | Microsoft Word Help |