You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "dbalek (via GitHub)" <gi...@apache.org> on 2023/05/19 16:48:29 UTC

[GitHub] [netbeans] dbalek commented on a diff in pull request #5963: VSCode: Various code completion enhancements.

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: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

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