Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PCRE \R - newline sequences #8

Open
CodesAway opened this issue Aug 15, 2020 · 0 comments
Open

Add support for PCRE \R - newline sequences #8

CodesAway opened this issue Aug 15, 2020 · 0 comments

Comments

@CodesAway
Copy link
Owner

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant