Skip to content

Commit

Permalink
feat: design multiple parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cherryramatisdev committed Dec 29, 2023
1 parent 2aeed3b commit 2ed1665
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,15 @@ group(letter | whitespace)
group(letter | glob(rest=True))
```

### 29/12/2023

For every identifier like `numbers`, `letters, `letter`, `number`, we should be
able to define a selector that forces the query to match **exactly** the number
of chars informed. This can be achieved by using the `{3}` constraint from
regex.

```
letters(upcase=True, select=3) => [A-Z]{3}
letters(upcase=True, select=3) | numbers(select=4) => [A-Z]{3}[0-9]{4}
group(letters(upcase=True, select=3)) | numbers(select=4) => ([A-Z]{3})[0-9]{4}
```

0 comments on commit 2ed1665

Please sign in to comment.