The problem isn't the regex, it's in how your expressions are getting parsed from the text variable into the action's regex fields. So hard-coding works as expected:
I don't have an answer, but at least that'll stop you chasing the wrong problem!
For more information, see the wiki Searching the Forum for Answers section.