| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/pyarrow.compute.extract_regex_span.html | [Back] [Original] |
Section Navigation
Extract string spans captured by a regex pattern.
For each string in strings, match the regular expression and, if successful, emit a struct with field names and values coming from the regular expressions named capture groups. Each struct field value will be a fixed_size_list(offset_type, 2) where offset_type is int32 or int64, depending on the input string type. The two elements in each fixed-size list are the index and the length of the substring matched by the corresponding named capture group.
If the input is null or the regular expression fails matching, a null output value is emitted.
Regular expression matching is done using the Google RE2 library.
Argument to compute function.
strRegular expression with named capture fields.
pyarrow.compute.ExtractRegexSpanOptions, optionalAlternative way of passing options.
pyarrow.MemoryPool, optionalIf not passed, will allocate memory from the default memory pool.
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |