Skip to content
1 min read · 52 words

Variable: stringExtractTool

ts
const stringExtractTool: Tool<SpooledArtifact>;

Defined in: batteries/tools/string_processing/index.ts:198

Extract all matches of a regular expression from a string.

Remarks

The g flag is always enabled. group selects which capture group to return per match (0 = full match). Output is at most 500 matches; if truncated, the suffix (truncated at 500) is appended.