5 ms·
Those improvements are not really novel though. Perl regular expression have had variables, comments, non-significant whitespace basically forever.
by jsnell 4y ago
Those improvements are not really novel though. Perl regular expression have had variables, comments, non-significant whitespace basically forever.
- macintux 4y agoAfter learning Perl, nearly every language has been a disappointment when it comes to regexes and text handling in general. I couldn't believe it when Java was released with not only no regex capability in the language syntax, but no library either.
- dxbydt 4y agohttps://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html https://docs.oracle.com/javase/7/docs/api/java/util/regex/pa... pcre has always had java and scala support.
- zokier 4y agoJava Pattern != Pcre != Perl regex, they are all distinct implementations with own quirks
- macintux 4y agoDuring Sun’s initial Java 1.0 release roadshow I drove to Chicago to attend. At the time, java.util.regex didn’t exist. I don’t know how to identify when it appeared.
- Avshalom 4y agoSays at the bottom since 1.4 which would be 2002 according to wikipedia but the history of java version numbers seems weird and 1.4 might just be the last time the java.util.regex api changed.
- cutler 4y agoWorse, Java regexen still require metacharacters to be escaped despite the recent introduction of raw string literals. Would you include Ruby in your comparison given that it inherits its regex implementation largely from Perl despite Onigurama's slight differences?
- macintux 4y agoRuby was the exception I had in mind when I used the word “nearly”.