I am building a validation table
Well, the first thing to check is that you're not re-inventing the wheel - the isValid function can validate a variety of types (creditcard,email,zipcode,etc).
It also provides a way to match against a regex pattern, like this:
<cfif isValid('regex',String,RegexPattern) >
Something to be aware of: the documentation for isValid claims that it uses JavaScript regex, which (if true) is different to the default Apache ORO regex that CF uses for everything else.
For the direct regex version of what you were doing (which does use Apache ORO), you would use:
<cfif refind(RegexPattern,String) >
It's not clear what you're on about with your returnValue
bit, though if you're returning a boolean from a function, ditch the cfif
and just do one of these instead:
<cfreturn isValid('regex',String,RegexPattern) />
<cfreturn refind(RegexPattern,String) />