gricha2380 / regex

https://gricha2380.github.io/regex/demo
0 stars 0 forks source link

Allow quantifiers to change on click #20

Closed gricha2380 closed 6 years ago

gricha2380 commented 6 years ago

Allow value of quantifier to be toggled. Have quantifiers begin disabled. greyed out + symbol ... means "disabled / none" ... value 0

gricha2380 commented 6 years ago

Visual toggle is now implemented. Current toggle value is passed into matchEnemy(). Next step is to allow {x} and {x,} to support custom values from input field. I'll need to find a way to check the value even with the variable input. I'll use regex to do something similar to this: if (input.match(/{\n}/) vs if (input.match(/{\n,}/)

gricha2380 commented 6 years ago

Done. I'm still wondering if quantifiers need to allow for additional quantifiers to sequentially follow? That sounds like an edge case for now, so I'll mark as closed.