Skip to content

Search in File with Regex not working properly #142174

@juergenbosch

Description

@juergenbosch
  • VS Code Version: 1.63.2
  • OS Version: Window 10

Steps to Reproduce:

  1. Open a file with the following content:
    [
    {
    "__metadata": {
    "id": "",
    "uri": "",
    "type": ""
    },
    "ChmlCmplncInfoUUID": "0894ef45-8661-1ee8-b4de-722cc0233ee5",
    "CmplRqRsltUUID": "0894ef45-7651-1edc-a0ee-91a120b281cb",
    "Language": "RO",
    "Language_Text": "Romanian",
    "CmplRqVersName": "ADN 2021",
    "ComplianceRequirement": "ADN",
    "CmplRqRsltProcessingStatus": "IP",
    "DngrsGoodMarkingLabelText": "MARKING3"
    },
    {
    "__metadata": {
    "id": "",
    "uri": "",
    "type": ""
    },
    "ChmlCmplncInfoUUID": "0894ef45-8661-1ee8-b4de-722cc0233ee5",
    "CmplRqRsltUUID": "0894ef45-7651-1edc-a0ee-91a120b281cb",
    "Language": "HR",
    "Language_Text": "Croatian",
    "CmplRqVersName": "ADN 2021",
    "ComplianceRequirement": "ADN",
    "CmplRqRsltProcessingStatus": "IP",
    "DngrsGoodMarkingLabelText": "MARKING3"
    }
    ]

  2. Search with the regex pattern: "__metadata"[^}]*},

Result: Nothing is found.

Expected: The Search should find the following multiline content:
"__metadata": {
"id": "",
"uri": "",
"type": ""
},

To check if the regex pattern is correct i have matches if i use the same regex pattern on: https://regex101.com/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions