dbalek commented on code in PR #5963:
URL: https://github.com/apache/netbeans/pull/5963#discussion_r1199170924


##########
java/java.editor/src/org/netbeans/modules/editor/java/Utilities.java:
##########
@@ -93,6 +94,7 @@
 public final class Utilities {
     
     private static final String ERROR = "<error>"; //NOI18N
+    private static final Pattern LINK_PATTERN = Pattern.compile("<a 
href='(\\*\\d+)'>(.*?)<\\/a>", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);

Review Comment:
   `.*`  is a greedy quantifier that matches as many characters as possible 
while `.*?` is a lazy quantifier that matches as few characters as possible.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to