exercism / exercism/snippet-extractor
Regex matching
- Dominant language
- Ruby
- Stars
- 1
- Forks
- 29
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 1
Description
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.
```ABAP
* 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
```ABAP
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.