What is the difference between "[abc]+" and "[abc]" regex patterns?
>Solution :
I know what
+means. But what does it mean without quantifier?
If you do not put a quantifier next to a regex token, then (by default) this means "match one".
This means "match the word hello":
/hello/
i.e. it does not match anything else, such as: helo, heello or heeelllooooo.
This means "match one h, one or more e, one or more l and one o:
/he+l+o/
i.e. matches any of the following:
helo
hello
heeeelo
heellllo