C
Chen Yang
Hi there,
How can i make the Pattern.compile as character '*' and '(' ?
I check the API, and it says:
\cx The control character corresponding to x
And if I write like this:
Pattern p1 = Pattern.compile(".*\\b\\c(\\c*\\b.*");
Matcher m1 = p1.matcher("(* ");
System.out.println(m1.find());
It returns false. Plez help me out with this, thanks in advance.
Chen
How can i make the Pattern.compile as character '*' and '(' ?
I check the API, and it says:
\cx The control character corresponding to x
And if I write like this:
Pattern p1 = Pattern.compile(".*\\b\\c(\\c*\\b.*");
Matcher m1 = p1.matcher("(* ");
System.out.println(m1.find());
It returns false. Plez help me out with this, thanks in advance.
Chen