Skip to content

Regex.Match is different between .NET 8.0.4 and .NET Framework 4.8 #101223

Closed
@VB-Man

Description

@VB-Man

Description

Regex.Match is different between .NET 8.0.4 and .NET Framework 4.8

Reproduction Steps

    Dim regex As New Regex("AAB|AAC", RegexOptions.RightToLeft)
    Dim m As Match
    m = regex.Match("AABAACD", 6)

    If m.Success = True Then
        '.NET Framework 4.8
        '.NET Framework 4.7.2
    Else
        '.NET 7.0.0
        '.NET 8.0.0
        '.NET 8.0.4
    End If

    MsgBox(m.Success)

Expected behavior

I think the operation of .NET Framework is correct.
I want the processing results of .NET Core to be the same as .NET Framework.

Actual behavior

There is no particular description.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions