Regular expression ([a-zA-Z]) \ \ 1 * in the \ \ 1 What does this mean

Category: Java SE
 
sammysh
2013-08-20 05:02:24

Sponsored Links
Regular expression ([a-zA-Z]) \ \ 1 * in the \ \ 1 What does this mean, if that is the first bracket match the contents inside, why there are two \, should not one do? I was a novice, beginner regex, wrong Biejianguai oh

Sponsored Links

b1159717357
2013-08-20 05:15:56
\ 1 backreference matches first capturing group captured content

Java is declare a string regular, so use \ \, the escape character more expressions, which is indeed very people crash
C # provides the @ symbol, JavaScript provides a / expression / such a declaration, it can circumvent this problem, and Java, at least until now still can not circumvent the
xkx0931
2013-08-20 05:24:06
O (∩ _ ∩) O Thank you, I understand
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.