Patch for /trunk/named-regexp/src/main/java/com/google/code/regexp/NamedPattern.java

Description

1 2 3 4 5 6 7 8 9 10 11 --- trunk/named-regexp/src/main/java/com/google/code/regexp/NamedPattern.java +++ trunk/named-regexp/src/main/java/com/google/code/regexp/NamedPattern.java @@ -7,7 +7,7 @@ public class NamedPattern { - private static final Pattern NAMED_GROUP_PATTERN = Pattern.compile("\\(\\?<(\\w+)>"); + private static final Pattern NAMED_GROUP_PATTERN = Pattern.compile("\\(\\?<(\\w+)>|\\((?!\\?\\:)"); private Pattern pattern; private String namedPattern;

Environment

None

Status

Assignee

TonyT

Reporter

Anonymous

Labels

None

Priority

Medium
Configure