diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,6 +1,6 @@ # ListExp [ WIP ] -Regular expression-like syntax for list operations. Nobody asked for this so here it is. +Regular expression-like syntax for list operations. Toy project experimenting with generalizing regex-like operations to a list. [](https://forthebadge.com) [](https://forthebadge.com) @@ -18,6 +18,7 @@ Whitespaces are ignore (except within literals) * `a|b` => match `a` **or** `b` * `a*` => Zero or more consecutive instances of pattern `a` in the list * `a+` => One or more consecutive instances of pattern `a` in the list +* `a{2, 5}` => Min-Max quantifiers (example matches a more than 2 times but less than 5) [TODO] * `(\s\T)` => Group (example matches any non-empty string) * `^a$` => `^` indicates start of list, and `$` indicates end of list [TODO] * `a,b` => match `a` followed by `b` (next item) @@ -26,6 +27,17 @@ Whitespaces are ignore (except within literals) * `/pat/` => Test string values against regex [TODO] +### TODO + - [X] `matchAll` function + - [ ] `replaceAll` function + - [ ] `match` function + - [ ] Named capture groups + - [ ] Non-capturing groups + - [ ] `{min, max}` quantifiers + - [ ] Regular expressions for string items + - [ ] Nested list evaluation + - [ ] Number comarison + ### Examples |
