import java.io.*;
public class Test {
public static void main(String args[]) {
String Str = new String("where test = (:viztest)");
System.out.print("Return Value :" );
System.out.println(Str.replaceFirst("(:viztest)", "any('25','324')"));
}
}
The result to this is
$javac Test.java
$java -Xmx128M -Xms16M Test
Return Value :where test = (any('25','324'))
Where it should be where test = any('25','324')
Why does it ignore replacing the parenthesis and how it should be fixed?