VB Regular Expression in Outlook?

C

crazyv

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!
 
S

Sue Mosher [MVP-Outlook]

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.
 
C

crazyv

- 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top