Skip to content

Add support for PCRE \R - newline sequences #8

Description

@CodesAway

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions