H
Harry-Wishes
Hello
I am trying to execute a search for a particular string pattern that starts
with <p and and ends with >. (See example below). In particular, I want to
set up my find so that it is looking for a string pattern that contains the
substring "list" anywhere within the string.
<p class=MsoNormal
style='margin-left:.5in;text-indent:-.5in;mso-text-indent-alt:
-9.0pt;mso-list>
To give you an abbreviated version of what I am trying to do, below is a
snippet for the find method. You'll see that the substring has to appear
within a certain place within the complete string (not what I have in mind).
Any suggestions welcome. Thanks!
Harry_Wishes
With Selection.Find
.Text = "(\<p )(class=MsoNormal
style='margin-left:.)([0-9]{1,2})(in;text-indent:-.)([0-9]{1,2})in;mso-[!l]{1,30}list[!\>]{1,250}\>" '[!\>]{1,250}\>"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
I am trying to execute a search for a particular string pattern that starts
with <p and and ends with >. (See example below). In particular, I want to
set up my find so that it is looking for a string pattern that contains the
substring "list" anywhere within the string.
<p class=MsoNormal
style='margin-left:.5in;text-indent:-.5in;mso-text-indent-alt:
-9.0pt;mso-list>
To give you an abbreviated version of what I am trying to do, below is a
snippet for the find method. You'll see that the substring has to appear
within a certain place within the complete string (not what I have in mind).
Any suggestions welcome. Thanks!
Harry_Wishes
With Selection.Find
.Text = "(\<p )(class=MsoNormal
style='margin-left:.)([0-9]{1,2})(in;text-indent:-.)([0-9]{1,2})in;mso-[!l]{1,30}list[!\>]{1,250}\>" '[!\>]{1,250}\>"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With