while means "match zero or more,the (or plusmeans "match one or more unlike the starwhich does not require its group to appear in the matched stringthe group preceding plus must appear at least once it is not optional enter the following into the interactive shelland compare it with the star regexes in the previous sectionbatregex re compile( 'bat(wo)+man'mo batregex search('the adventures of batwoman'mo group('batwomanmo batregex search('the adventures of batwowowowoman'mo group('batwowowowomanmo batregex search('the adventures of batman'mo =none true the regex bat(wo)+man will not match the string 'the adventures of batman'because at least one wo is required by the plus sign if you need to match an actual plus sign characterprefix the plus sign with backslash to escape it\matching specific repetitions with braces if you have group that you want to repeat specific number of timesfollow the group in your regex with number in braces for examplethe regex (ha){ will match the string 'hahaha'but it will not match 'haha'since the latter has only two repeats of the (hagroup instead of one numberyou can specify range by writing minimuma commaand maximum in between the braces for examplethe regex (ha){ , will match 'hahaha''hahahaha'and 'hahahahahayou can also leave out the first or second number in the braces to leave the minimum or maximum unbounded for example(ha){ ,will match three or more instances of the (hagroupwhile (ha){, will match zero to five instances braces can help make your regular expressions shorter these two regular expressions match identical patterns(ha){ (ha)(ha)(haand these two regular expressions also match identical patterns(ha){ , ((ha)(ha)(ha))|((ha)(ha)(ha)(ha))|((ha)(ha)(ha)(ha)(ha)