Joomla ReReplacer with Regular Expression Conditionals

We currently have an Joomla 1.5 installed on our webserver with a tool from called ReReplacer. ReReplacer from what I can gather basically runs all the html of a given page through a php function (I assume but do not know it is preg_replace) to replace certain text with given replacements. The tool works great for the simple things I have used it for in the past, but now I have a more complex situation:

Based on the title of the page I want to construct a conditional regular expression that will replace the word "{Article}" with the text from a given html comment. So basically here's a simple example of what I want.

Here is some example html output of the website:
<!--Article1:This product can be used for...-->
<!--Article2:This product suite has been usefull to us for....-->
Generic text that fits all here.

Open in new window

So basically I need a regular expression that will look at the title (the text between <title> and </title> tags) and if it is Quickbooks or ACT, then I will display the text in the Article1 comment. If the contents of the title tags is Crystal Reports or Access or Business Objects Enterprise I want it to display the text in the Article2 comment.

Unfortunately all the links on google concerning Regular Expression Conditionals seem to have one line conditionals that do both the search and replace all on one line. This is a problem because ReReplacer expects separate search and replace fields to be filled in. Note the response to this question must work with ReReplacer in Joomla. Can anyone help me construct the conditional I am looking for?
RUA Volunteer2?Tableau Trainer & Consultant Sales Exec.Asked:
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.

Terry WoodsIT GuruCommented:
This pattern will match Quickbooks or ACT in the title - I don't know enough about the language you're using to put it into code though:

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
Terry WoodsIT GuruCommented:
Alternatively, a pattern like this should hopefully capture the text you want to display:
(?:(?:Quickbooks|ACT)</title>[\w\W]*?<!--Article1:|(?:Crystal Reports|Access|Business Objects Enterprise)</title>[\w\W]*?<!--Article2:)(.*?)-->
RUA Volunteer2?Tableau Trainer & Consultant Sales Exec.Author Commented:
I am terribly sorry. Thank you for the support. I rewarded points to the answer. Those work nicely thanks.
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.