Java tutorial
//package com.java2s; public class Main { /** * TODO: Eliminate the mungling on the client-side instead of * attempting very problematic correction here! */ static String revertMungledPreparedQuery(String inQuery) { // THIS PURPOSEFULLY USING Java 1.4! return inQuery.replaceAll("\\$\\d+", "?"); } }