package org.das2.util; import java.util.Arrays; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Apply an operation to a String to make it a String with similar meaning. This is needed for * new code which indicates the orbit number, but the orbit number context is provided elsewhere * on the plot. * * * * @author jbf */ public class StringTransmogrifier { Pattern p; String result; int nf; String[] byName; int[] byIndex; /** * Create a regex-based transmografier. The result is the template which is * populated from groups of the regular expression. The groups can be referenced * by index or by name, with *