Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does [*]+ mean in Regex? [duplicate]

Tags:

regex

I'm trying to work through the puzzles on regexcrossword.com and I'm finding that it's not clear in its instructions. My understanding of this expression is:

[]= any combination of the characters within the brackets

*= 0 or more of the preceding pattern

+= 1 or more of the preceding pattern

But, I don't see how there's a pattern to be followed at all. What am I missing here?

like image 587
MikeR Avatar asked Dec 24 '22 21:12

MikeR


1 Answers

* means just that character when it is inside [] (+ would as well).

So [*]+ means one or more *s.

like image 162
Scott Hunter Avatar answered Jan 17 '23 06:01

Scott Hunter