Thank you so much Travis. This is the appropriate solution.
Though not very relevant to
Java Ranch's "General Java" forum, I was successful experimenting with Bean Shell and come up with a solution (just in case).
Prperties File
Key1 = regex
Key2 = regex
Result = Key1 + \"_\" + Key2
Code Snippet
Properties properties = new Properties();
try {
properties.load(new FileInputStream("C:/Test/test.properties"));
String returnValue;
String finalValue = properties.getProperty("Result");
Interpreter i = new Interpreter();
try {
i.set("Key1", someValue)
i.set("Key2", someValue)
returnValue = (String)i.eval(finalValue);
}
catch (EvalError e) {
}
}
catch (IOException e) {
}
Thanks
Bala