Regular Expression Help

Hi all,

I'm trying to use an application to trap and search subjects of inbound email for processing.  The application ( case it matters or you're curious) uses "RegEx" for the string/pattern matching.

Here's an example of a subject being sent in:  Testing Initiated:  SiteA Mail Server

What I need to do is snag the "SiteA" component (this will change from message to message, however the outer boundaries will not...what I mean by that is the inbound message will always contain  Testing Initiated:  
The message will also always end with   Mail Server

The variable is         SiteA

I've tried a number of strings, but all I ever seem to be able to do is find the beginning of SiteA, or find everything after the :

Can anyone help me out with this?

Thanks in advance
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try this:
(?<=Testing Initiated:).*(?= Mail Server)
Works here:
Although, do you want to dodge those spaces too? Then use
(?<=Testing Initiated:  ).*(?= Mail Server)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
(Testing Initiated:) (.+) (Mail Server)

$& [Testing Initiated: SiteA Mail Server]
$1 [Testing Initiated:]
$2 [ SiteA]
$3 [Mail Server]
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.