Re: regular expression doesn't detect set pattern
- From: Russ <drsN0SPAMmikle@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 08 Jun 2007 02:24:15 -0400
Here is more information on trying Regular Expressions in VBA:
http://www.j.nurick.dial.pipex.com/Code/index.htm
One downside is that they rely on VBScripting or Windows Scripting which
won't work in MacWord VBA.
Thanks for the suggestion, Russ. For searching, I use wildcards also but I
would like to use regular expressions since they're better for evaluating
(not searching for) text so that I don't have to do something like
If Selection=chr(13) or selection=chr(10)
if I don't know if the end-of-line character will be a soft or hard break. I
would prefer to take advantage of pattern matching rather than a specific
character. I've never been successful, for example, in writing
if selection="^p"
but I use ^p all the time for searching. If you know of a better way for
evaluating a selection, I'll readily welcome the suggestion.
--
Russ
drsmN0SPAMikleAThotmailD0Tcom.INVALID
.
- References:
- Prev by Date: Re: Steps to create i.d. badges with imported photos and colored line
- Next by Date: Re: turn off echo/prevent visible activity or screen refresh
- Previous by thread: Re: regular expression doesn't detect set pattern
- Next by thread: Re: turn off echo/prevent visible activity or screen refresh
- Index(es):
Relevant Pages
|