The set of all alphabetic strings.
RE: /[a-zA-Z]+/
The set of all lowercase alphabetic strings ending in a ‘b’.
RE: /[a-z]*b/
The set of all strings with two consecutive repeated words (e.g., “Humbert Humbert” and “the the” but not “the bug” or “the big bug”).
RE: /\b(\w+)\s+\1\b/
The set of all strings from the alphabet a,b such that each a is immediately preceded and immediately followed by a b.
RE: /(b+(ab+))+?/
text:
ab
aba
abaabaab
RE: /(aba?)+/