Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex String Functions #1516

Merged
merged 1 commit into from
May 8, 2023
Merged

Commits on May 8, 2023

  1. Add string regex functions

    Rename RE_MATCH function to REGEXP_FULL_MATCH
    
    The latter is more descriptive and complaint with
    duckdb's naming convention.
    
    Introduce regexp utils based on re2
    
    Refactor regex_full_match implementation
    
    Functions added:
    
    1.regexp_matches(string, regex)
    Returns true if a part of string matches the
    regex.
    
    2. regexp_replace(string, regex, replacement)
    Replaces the first occurrence of regex with the
    replacement,
    
    3. regexp_extract(string, regex[, group = 0])
    Split the string along the regex and extract
    first occurrence of group.
    
    4. regexp_extract_all(string, regex[, group = 0])
    Split the string along the regex and extract
    all occurrences of group.
    gaurav8297 committed May 8, 2023
    Configuration menu
    Copy the full SHA
    a682d24 View commit details
    Browse the repository at this point in the history