2 ms·
>Ruby even supports Perl regular expressions No, Ruby Regexp is based on the https://github.com/k-takata/Onigmo https://github.com/k-takata/Onigmo library. The
by asicsp 5y ago
>Ruby even supports Perl regular expressions
No, Ruby Regexp is based on the https://github.com/k-takata/Onigmo https://github.com/k-takata/Onigmo library. There are plenty of differences compared to Perl, for example `^` and `$` anchors always match start/end of lines without needing a flag, subexpression syntax uses `\g` instead of `(?N)` and so on.