
 Usage: semkit read [IN] extract-around [OPTIONS] [PATTERN]

 The part of the phrase before or after the first or the last occurrence of a text.

 Remove and extract only.

 pattern: the text as typed, found anywhere, also inside a word («в» is found in «диван»); not a
 regular expression.
 after: the part after the occurrence; by default the part before it.
 last: the last occurrence; by default the first.
 include: the occurrence itself belongs to the part.

 remove finds the first occurrence in any case and the last one in the case written; extract
 matches the case written; ё = е. A phrase without the text has no part: remove leaves it, extract
 gives an empty cell.

 Example: semkit read --text "купить диван в москве" extract-around " в " --after write -
 -> москве

 extract-around keeps only what the matcher finds in the working column; an empty cell where it
 finds nothing.

╭─ Arguments ──────────────────────────────────────────────────────────────────────────────────────╮
│   PATTERN      <str>  the text as typed, found anywhere, also inside a word («в» is found in     │
│                       «диван»); not a regular expression. The same as --pattern PATTERN.         │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
│ --pattern        PATTERN  the text as typed, found anywhere, also inside a word («в» is found in │
│                           «диван»); not a regular expression.                                    │
│ --after                   the part after the occurrence; by default the part before it.          │
│ --include                 the occurrence itself belongs to the part.                             │
│ --last                    the last occurrence; by default the first.                             │
│ --as             NAME     Write the result to a new column NAME and keep the working column as   │
│                           it is.                                                                 │
│ --help                    Show this message and exit.                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

