Skip to content

Line break characters not working when used with Simple Regex match template #13

@leojosefm

Description

@leojosefm

I'm using below regex to find occurance of command EXIT SCRIPT except for last line. However it is not wokring

(?i)(EXIT\s+SCRIPT.*$)(\n)

Working:
(?i)(EXIT\s+SCRIPT.*$)

It's working when used without \n . But I want to capture the code smell only if it not in last line of the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions