Skip to content

Regex matching #41

Open
Open
@pokrakam

Description

@pokrakam

Suggestion: Could regex be incorporated in the matcher?

One immediate use case in ABAP is an end of line comment " is OK and " in strings need to be kept, but a line starting with " or * should be skipped.

* Now we will loop through the table
loop at sometable reference into data(row).
  if row->somefield = 'foo'. 
    "Exclude these
    continue.
  endif.
  write / |Row { sy-tabix } contains "{ row->anotherfield }"|. 
endloop. "end-of line comments can be deleted or not...

Should go to

loop at sometable reference into data(row).
  if row->somefield = 'foo'. 
    continue.
  endif.
  write / |Row { sy-tabix } contains "{ row->anotherfield }"|. 
endloop. "end-of line comments can be deleted or not...

Easy to do with regex, but I can't see a way according to the current documentation.

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