Skip to content

wrapped_captures/tagged_output: parameter to count endlines and terminate after n times #315

@AardCrowley

Description

@AardCrowley

Given:

Posts in the Bugs forum :
+------+------------+-------------+-------------------------------------+----+
| Post#| Date/Time  | Author      | Subject                             |Size|
+------+------------+-------------+-------------------------------------+----+
| 20406|26 Feb 16:05| Vega        | Danaan's Sash in SKD                |   4|
| 20407|26 Feb 20:23| Lasher      | Re: Accessing keys buy ID +         |   5|
| 20409|26 Feb 20:49| Neeper      | enchanters focus (maybe) no longer  |  10|
| 20410|26 Feb 20:59| Grbano      | Re: enchanters focus (maybe) no lon |   8|
+------+------------+-------------+-------------------------------------+----+

... it would be nice to be able to do:

Capture.tagged_output("note list", "Post in the \\w+ forum :", "^[\\-\\+]+", true, ... 3)

where '3' means "The end line should be ignored until it has been processed 3 times, then end the capture."

It's probably a small market of need, but if this could be added, it might help with some captures regardless.

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