re
relationalai.semantics.std
Regular expression function.
This module provides regex pattern matching and manipulation functions including:
- Pattern matching
- Finding all matches
- String substitution
- Match object with position and grouping support
Functions
Section titled “Functions”Functions exposed by this module.
match() Check if the regex matches the value from the start.
search() Search for the regex pattern in the value starting at the given position.
fullmatch() Check if the regex matches the entire value starting at the given position.
findall() Find all non-overlapping matches of the regex in the value.
sub() Replace occurrences of the regex in the value with the replacement string.
Classes
Section titled “Classes”Classes exposed by this module.
RegexMatch Represents a regex match result with position and grouping support.
Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning > Rules-based reasoning └── Match text with patterns ├── Understand howstd.rematches work └── Know currentstd.relimitations