<JavaScript Regex unique values from optional brac...
# community-feeds
r
JavaScript Regex unique values from optional bracket [closed] I have a word and I want to choose 5 unique not necessarily consecutive from these options [hello] let regex = /[hello]{5}/; Tests: heeel is allowed and I don't want it like this, instead I want like the following examples: "hello" or "olleh" or " lolhe" How can I do it?