I need to extract text from an email body using a RegEx. I'm using Outlook 2010 with the MS VBScript 5.5 regex engine. The text i'm trying to extract is:
MessageID :1079247881
InstrumentID :DS5431460001
So far, I've come up with:
MessageID\s*\:(\d+)\n
InstrumentID\s+\:([a-z]{2}\d+)\n
Both are working now. Here are my tests:
Ultimately, I want to highlight a specific message and run my code. It will then extract those 2 items from that message and put them into a template for me to send. I'm doing ok on that part. I just need help with the RegExs.