Reputation: 67299
I came across some regex's and this thing got me confusing! i am not able to understand what exatly it means:
[^>]*
could anypne please tell me.
Upvotes: 3
Views: 160
Reputation: 8426
Characters in the Language can repeat any number of times except for >
.
^
is an indicator of exclusion.
*
is an indicator of repetition
[^>]*
Anything except >
can repeat
Upvotes: 1
Reputation: 56829
Match 0 or more characters, which are not >
. The ^
as the first item in character class []
will make the character class a negated character class, and any character after ^
are excluded.
Upvotes: 6