Skip to content

Commit

Permalink
Merge pull request #19 from pscls/patch-1
Browse files Browse the repository at this point in the history
Update regexp-like.md
  • Loading branch information
arushi-firebolt authored Jan 18, 2024
2 parents 1265b8a + 07c40b8 commit 172318b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/sql_reference/functions-reference/string/regexp-like.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ REGEXP_LIKE(<expression>, '<pattern>'[,'<flag>[...]'])
| `<flag>` | Optional. Flags allow additional controls over the regular's expression matching behavior. If using multiple flags, you can include them in the same single-quote block without any separator character. | Firebolt supports the following RE2 flags to override default matching behavior. With `-` in front you can disable the flag.<br>* `i` - Specifies case-insensitive matching.<br>* `m` - Specifies multi-line mode. In this mode, `^` and `$` characters in the regex match the beginning and end of line.<br>* `s` - (Enabled per default) Specifies that the `.` metacharacter in regex matches the newline character in addition to any character in `.`<br>* `U` - Specifies non-greedy mode. In this mode, the meaning of the metacharacters `*` and `+` in regex `<pattern>` are swapped with `*?` and `+?`, respectively. See the examples using flags below for the difference in how results are returned. |

## Return Type
`INTEGER`
`BOOLEAN`

## Example
{: .no_toc}
Expand All @@ -37,14 +37,14 @@ SELECT
REGEXP_LIKE('123','[a-z]');
```

**Returns**: `0`
**Returns**: `f`

```sql
SELECT
REGEXP_LIKE('123','\\d+');
```

**Returns**: `1`
**Returns**: `t`

## Example using flags

Expand All @@ -55,4 +55,4 @@ SELECT
REGEXP_LIKE('ABC', '[a-z]', 'i');
```

**Returns**: `1`
**Returns**: `t`

0 comments on commit 172318b

Please sign in to comment.