Tag Info

New answers tagged

1

Your regex matches the '' empty string with d*, because the * quantifier means zero or many times and that's zero d here. And it's matched because when you use the g modifier it will not stop in the first match and continue matching, that's why you will get the second match. This is a DEMO without the g modifier and it doesn't match the ''. So if you ...



Top 50 recent answers are included