<--- --------------------------------------------------------------------------------------- ---- Blog Entry: REReplace() + Java + Function Pointers = Freakin' Sexy! Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:191.view Date Posted: Aug 4, 2006 at 8:24 AM ---- --------------------------------------------------------------------------------------- ---> // The Groups argument contains an array of groups that // were matched. Each group is denoted by a pair of // () in the matched regular expression pattern. // Check to see what the matched value is. For each // argument, we just returning a different value. switch ( ARGUMENTS.Match ){ case "girl": return( "lady" ); break; case "cute": return( "wicked cute" ); break; case "melons": return( "juicy melons" ); break; // No expected math was found. default: return( "??" ); break; }