perixtar/2024-Tech-OA

Is Regex Matching typo error

Closed this issue · 1 comments

There is a typo error of the rule
Regex "(a.b.d)*" matches with the strings "abcdabcd", "abcded", "abed", "a" but not with strings "bcd", "abbd".

The rule should be a(b.d)* matches with the strings "abcdbcd", "abcdbed", "abed", "a" but not with strings "bcd", "abd".

According to the image
image
image

There is a typo in the example 2
image
image

There is a typo error of the rule Regex "(a.b.d)*" matches with the strings "abcdabcd", "abcded", "abed", "a" but not with strings "bcd", "abbd".

The rule should be a(b.d)* matches with the strings "abcdbcd", "abcdbed", "abed", "a" but not with strings "bcd", "abd".

According to the image image image

There is a typo in the example 2 image image

Hello Alex!

Good job on catching the errors! I've made modifications accordingly.

Thanks!

Best,
Tomtom