import java.io.*;
import java.util.*;
import java.sql.*;
import java.util.regex.*;
class pattern
{
public static void main(
String[] args)
{
String temp="http://railsforum.com/viewtopic.php\\?id=38039";
String par="http://railsforum.com/viewtopic.php\\?id=38039";
Pattern pat= Pattern.compile(par);
Matcher mat= pat.matcher(temp);
if(mat.find())
{
System.out.println("match found");
}
}
}
it is still not be able match the pattern