Quantcast
Viewing latest article 1
Browse Latest Browse All 2

Answer by Servy for A small bug using markdown with links in comments

Notice that where the link starts in your comment is where you have a [ character in the comment (as a part of the regex).

This is a meaningful character in markdown, the start of link character. You can escape it with a slash (\) to ensure that it's treated as a literal.

Below is that same comment with the escaped character, as a comment. Here is the markdown for that comment:

This is roughly true, but the actual conditions are "(1)one-char String and this character is not one of the RegEx's meta characters ".$|()\[{^?*+\\", or (2)two-char String and the first char is the backslash and the second is not the ascii digit or ascii letter." ([source](http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/8u40-b25/java/lang/String.java#String.split%28java.lang.String%2Cint%29))

(Note that adding line breaks can potentially also affect how the markdown is rendered, so I've not included any.)


Viewing latest article 1
Browse Latest Browse All 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>