Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: nh-live/regexp2

Tags

v1.4.0

Toggle v1.4.0's commit message
fixes dlclark#32 make sure octal parsing only eats chars 0-7

v1.3.0

Toggle v1.3.0's commit message
fixes dlclark#24 changes $ behavior in singleline when using RE2 and …

…ECMAScript modes

PCRE and .NET have a different definition of $ than RE2 and ECMAScript
engines in singleline mode.  PCRE defines it as "$ asserts position at the end
of the string, or before the line terminator right at the end of the string (if any)."
This means that a pattern of "^ac$\n" is valid and can match "ac\n" OR "ac".

This behavior is different in RE2 and ECMAScript engines.  For these engines the
pattern "^ac$\n" won't match any inputs in singleline mode because the $ demands the
string ends but the pattern requires an extra \n so they both cannot be true.

The PCRE/.NET behavior feels wrong, but for this project I maintain compatibility with
them in "default" mode.  The other, less suprising behavior is enabled by using either
the RE2 option or the ECMAScript option.

v1.2.1

Toggle v1.2.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request dlclark#29 from eclipseo/fix_conversion_int_to_string

Go 1.15: Convert int to string using rune()

v1.2.0

Toggle v1.2.0's commit message
Added RE2 RegexOption that changes parser behavior to include more RE…

…2 formats that the .NET engine does not support. This will allow a smoother transition from the stdlib regexp package.

v1.1.8

Toggle v1.1.8's commit message
fix error added during scanning of numeric backreferences with groups

v1.1.7

Toggle v1.1.7's commit message
fix issue with groups containing slash constructs like (\c[)

v1.1.6

Toggle v1.1.6's commit message
add fuzzing tests for syntax package, fix issues discovered by fuzzing

v1.1.5

Toggle v1.1.5's commit message
Add benchmark to match go stdlib

v1.1.4

Toggle v1.1.4's commit message
add more detail about code history to ATTRIB file. fixes dlclark#11

v1.1.3

Toggle v1.1.3's commit message
prevent panic with multi-byte unicode bmPrefix that partially match. f…

…ixes dlclark#6