L
Laura
hi!
the desired result of a procedure that i'm doing is to find the words that
begin with a digit and eliminate this digit (1CD must convert to CD, and P2P
must remain equal)
so, first, i would like somebody answer me a question: (it's an easy
question )
is it possible to use wildcards with the 'replace' function or i'm obliged
to to a find-replace function:
Selection.Find.ClearFormatting
With Selection.Find
.Text = "mytext"
.Replacement.Text = "myreplacetext"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = true
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
and, at last, to ask how can i create the regular expression that removes
all the digits in a text, I've try with [0-9]* and with [0-9]{1,} but it
doesn´t works fine.
[0-9]* ->find individual digits
[0-9]{1,} -> gives me an error
thank you
the desired result of a procedure that i'm doing is to find the words that
begin with a digit and eliminate this digit (1CD must convert to CD, and P2P
must remain equal)
so, first, i would like somebody answer me a question: (it's an easy
question )
is it possible to use wildcards with the 'replace' function or i'm obliged
to to a find-replace function:
Selection.Find.ClearFormatting
With Selection.Find
.Text = "mytext"
.Replacement.Text = "myreplacetext"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = true
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
and, at last, to ask how can i create the regular expression that removes
all the digits in a text, I've try with [0-9]* and with [0-9]{1,} but it
doesn´t works fine.
[0-9]* ->find individual digits
[0-9]{1,} -> gives me an error
thank you