polars_python/functions/
strings.rs

1
2
3
4
5
6
7
use pyo3::prelude::*;

#[pyfunction]
pub fn escape_regex(s: &str) -> PyResult<String> {
    let escaped_s = polars_ops::chunked_array::strings::escape_regex_str(s);
    Ok(escaped_s)
}