It sounds like you want to compile the
pattern only once, but you want to have that pattern specified in a method. How about this:
This is an example of "lazy instantiation". If "checkStuff()" is never called, the pattern is never compiled. If it is called, the pattern compilation only happens the first time in.
If this doesn't address your concern, please supply additional information and re-post.
[ January 13, 2004: Message edited by: Wayne L Johnson ]