Argument arg1 = (Argument)args.get(0); Argument arg2 = (Argument)args.get(1); Argument arg3 = (Argument)args.get(2);
	public Argument evaluate(ContextStack context, Argument arg1, Argument arg2, Argument arg3)		throws MapyrusException	{		Argument retval;		/*		 * Replace all occurrences of pattern given in second string		 * with the third string.		 */		Pattern pattern = Match.compileRegex(arg2.toString());		Matcher matcher = pattern.matcher(arg1.toString());		if (matcher.find())		{			/*			 * Replace all matching patterns.			 */			retval = new Argument(Argument.STRING, matcher.replaceAll(arg3.toString()));		}		else		{			/*			 * No match so return original string.			 */			retval = arg1;		}		return(retval);	}