Skip to content

Conversation

@lidavidm
Copy link
Member

@lidavidm lidavidm commented Jun 24, 2021

This adds a find_substring_regex kernel and adds support for case insensitivity to the find_substring kernel.

RE2 only returns the match position if you have a capture group. Hence we have to modify the supplied regex. For literal patterns, we have to use RE2::QuoteMeta instead of setting the literal flag on the regex.

@github-actions
Copy link

@ianmcook
Copy link
Member

So this implements a find_substring_regex kernel too? Nice. You mind if I adjust the titles and descriptions to make that clear? Thanks.

@lidavidm
Copy link
Member Author

Please go ahead! Sorry, once I added ignore_case using RE2, I figured a find_substring_regex was basically no additional effort, but I should've updated the JIRA.

@ianmcook ianmcook changed the title ARROW-13157: [C++][Python] Implement ignore_case for find_substring ARROW-13157: [C++][Python] Add find_substring_regex kernel and implement ignore_case for find_substring Jun 26, 2021
Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, thank you @lidavidm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants