How can I use a regular expression in JavaScript to get a value from page source code from a function tag?

I think you may be attacking the problem from the wrong flank. i.e. from your earlier topic

What does the sever-side code that’s dealing with the transient hash look like?