Skip to content

Commit 1b18f02

Browse files
authored
Update JavaRegexGroups.java
1 parent f681fdd commit 1b18f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regex/JavaRegexGroups.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static void main(String[] args) {
1010
String content = "<p>The <code>Pattern</code> is a compiled "
1111
+ "representation of a regular expression.</p>";
1212

13-
Pattern p = Pattern.compile("(</?[a-z]*>)");
13+
Pattern p = Pattern.compile("(</?[a-z]+>)");
1414

1515
Matcher matcher = p.matcher(content);
1616

0 commit comments

Comments
 (0)