CodesAway / CodesAway/RegExPlus

Add support for PCRE \R - newline sequences

Open
#8 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
5
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Looks like would be the following regex (since \v matches a single line separator)

(?>\r\n|\v)

https://www.pcre.org/original/doc/html/pcrepattern.html

Newline sequences
Outside a character class, by default, the escape sequence \R matches any Unicode newline sequence. In 8-bit non-UTF-8 mode \R is equivalent to the following:

(?>\r\n|\n|\x0b|\f|\r|\x85)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.