Sunday, 8 September 2013

How to interpret following regex?

How to interpret following regex?

I have a regex but i am not able to interpret it (JAVA) : \w\1 I thought
it would match : aa since it had word a twice and First Group would be
same only. But its not behaving in this manner.
Does the Back Referencing works only if we place braces around regex ? Any
help would be appreciated. Thanks.

No comments:

Post a Comment