Skip to content

Add support for PCRE \R - newline sequences #8

@CodesAway

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions