Well, I was able to use Jim's tutorials to find a way to pass the text entered into a TEB to another variable. That's working great.
But I'm having trouble implementing the regular expression. I've tried adding the statement outside and inside the Set function with no luck. I also tried writing a separate function and calling that.
Now I'm not sure Captivate's implementation supports regular expressions.
So I guess that would be the first thing to know.