# IRegexp
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-17)</span>

Compiled I-Regexp pattern for full-string matching and substring search.
Created via IRegexpCompiler.parse() or .compile().


```pony
class val IRegexp
```

## Public Functions

### is_match
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-27)</span>


Test if the entire input string matches the pattern.

```pony
fun box is_match(
  input: String val)
: Bool val
```
#### Parameters

*   input: [String](builtin-String.md) val

#### Returns

* [Bool](builtin-Bool.md) val

---

### search
<span class="source-link">[[Source]](src/iregex/i_regexp.md#L-0-31)</span>


Test if any substring of input matches the pattern.

```pony
fun box search(
  input: String val)
: Bool val
```
#### Parameters

*   input: [String](builtin-String.md) val

#### Returns

* [Bool](builtin-Bool.md) val

---

