Function: likeToRegex()
likeToRegex(
like,isStrLit?,caseSensitive?):RegExp
Defined in: lang-sql/src/utils/string.ts:75
Converts a SQL LIKE pattern to a RegExp, mapping % to .* and _ to ..
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
like | string | undefined | - |
isStrLit | boolean | false | Whether the pattern is a string literal and requires general escape sequence processing |
caseSensitive | boolean | true | - |
Returns
RegExp