polars_python/functions/
strings.rs

1use pyo3::prelude::*;
2
3#[pyfunction]
4pub fn escape_regex(s: &str) -> PyResult<String> {
5    let escaped_s = polars_ops::chunked_array::strings::escape_regex_str(s);
6    Ok(escaped_s)
7}