skip to content
Alvin Lucillo

Kleene Star/Plus

/ 1 min read

💻 Tech

Kleene Star and Kleene Plus are patterns for zero or more and 1 or more respectively

Regex: a+b*c+ This matches a text that has at least one a, with one or more b, and at least one c.

aaaabcc - matched
aabbbbc - matched
aacc    - matched
a
c