# fullmatch

relationalai.semantics.std.re

```python
fullmatch(
    regex: StringValue, value: StringValue, offset: IntegerValue = 0
) -> RegexMatch
```

Check if the regex matches the entire value starting at the given position.

## Parameters

- `regex` (`StringValue`) - The regular expression pattern.
- `value` (`StringValue`) - The string value to match against.
- `offset` (`IntegerValue`, default: `0`) - The starting position for the match (0-based). Default: 0.

## Returns

- [`RegexMatch`](/api/python/v2.3/semantics/std/re/regexmatch_class/index.md) - A `RegexMatch` object representing the match result.

## Examples

Match entire string against a pattern:

```python
define(Person.new(name="Alice"), Person.new(name="bob jr"))
re.fullmatch(r"[A-Z][a-z]+", Person.name)
select(Person.name).where(re.fullmatch(r"[A-Z][a-z]+", Person.name))
```

Match starting at an explicit position:

```python
re.fullmatch(r"[a-z]+", Person.name, 1)
select(Person.name).where(re.fullmatch(r"[a-z]+", Person.name, 1))
```
