我的代码如下:<%@page contentType="text/html;charset=gb2312"%>
<%@page import="java.lang.*"%>
<%@page import="java.util.*"%>
<html>
<head>
<title>登录</title>
</head>
<body>
<%
String u="11";
String p="^\d+$";
if(u.matches(p))
{//判断非负整数
   out.println("正确");
}
%>
</body>
</html>报错:
org.apache.jasper.JasperException: Unable to compile class for JSPAn error occurred at line: 10 in the jsp file: /test.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\test\org\apache\jsp\test_jsp.java:56: illegal escape character
String p="^\d+$";
            ^
1 error