Learn R Programming

EnTraineR (version 1.0.0)

trainer_core_extract_block_after: Extract lines following a header (up to first blank line)

Description

Extract lines following a header (up to first blank line)

Usage

trainer_core_extract_block_after(txt, header)

Value

Character vector of lines until first blank line.

Arguments

txt

Printed object as a single string.

header

Exact header text to search.

Examples

Run this code
trainer_core_extract_block_after("Head\nA\n\nB", "Head")

Run the code above in your browser using DataLab