VB Regular Expression in Outlook?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Greetings to all,

I am creating a Outlook 2003 ThisOutlookSession module. I need to feed in a
string and filter the certain parts of it based on delimited characters.

I know I can do this using "InStrB" as Michael(MVP) had suggested on one of
the posts.
I found that Regular Expression can also be used according to a post by Sue
(MVP).

I think I could manage the "InStrB" method - but would like to learn the
Regular expression way as well!
I have used VB's (Scripting) "RegEx" Object previously to create RE's but am
unable to find a similar 'regex' object to use within the VB Editor in
Outlook (?)

I was not able to find a reference within MSDN for VB Outlook Regular
expression either. (tried Google too)
If someone could point me to a link out there on the web to get me on my
way, I would appreciate that a lot. :)

Thanks!
 
In Tools | References, add a reference to the Microsoft VBScript Regular Expressions 5.5 library. You can then use CreateObject("VBScript.RegExp") to return a RegExp object and take it from there.
 
- bulls eye

Thanks Sue

Sue Mosher said:
In Tools | References, add a reference to the Microsoft VBScript Regular Expressions 5.5 library. You can then use CreateObject("VBScript.RegExp") to return a RegExp object and take it from there.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54
 
Back
Top