Constructs a new RegexExtractTask.
Optional
properties: IRegexExtractTaskProperties to set
The capture group number to extract (0 returns full match, 1+ returns respective capture group). Defaults to 0 if not specified.
The regular expression pattern to match against the input string. Uses the fancy-regex Rust crate syntax.
Converts this RegexExtractTask to JSON.
JSON object
Static
createCreates a new RegexExtractTask instance using the specified properties.
Optional
properties: IRegexExtractTaskProperties to set
RegexExtractTask instance
Static
decodeDecodes a RegexExtractTask message from the specified reader or buffer.
Reader or buffer to decode from
Optional
length: numberMessage length if known beforehand
RegexExtractTask
Static
decodeDecodes a RegexExtractTask message from the specified reader or buffer, length delimited.
Reader or buffer to decode from
RegexExtractTask
Static
encodeEncodes the specified RegexExtractTask message. Does not implicitly verify messages.
RegexExtractTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
encodeEncodes the specified RegexExtractTask message, length delimited. Does not implicitly verify messages.
RegexExtractTask message or plain object to encode
Optional
writer: WriterWriter to encode to
Writer
Static
fromCreates a RegexExtractTask message from a plain object. Also converts values to their respective internal types.
Plain object
RegexExtractTask
Static
getGets the default type url for RegexExtractTask
Optional
typeUrlPrefix: stringyour custom typeUrlPrefix(default "type.googleapis.com")
The default type url
Static
toCreates a plain object from a RegexExtractTask message. Also converts values to other types if specified.
RegexExtractTask
Optional
options: IConversionOptionsConversion options
Plain object
Static
verifyVerifies a RegexExtractTask message.
Plain object to verify
null
if valid, otherwise the reason why it is not
Find and extract text using regular expressions from the previous task's output.
Input: String output from previous task
Returns: The matched string based on the regex pattern and group number
Example: Extract the first number from a string
Example: Extract text between quotes
Example: Extract the first JSON object from a stream