extract_variable: Extract variable value from text lines
Description
This function searches for a specific pattern in text lines and extracts the corresponding value.
Usage
extract_variable(lines, search_text)
Value
The extracted value as a character, or "Null" if not found.
Arguments
- lines
Character vector. The lines of text to search within.
- search_text
Character. The regular expression pattern to match.