C
ccwork
Hi,
I would like to understand the regular expression more and there
are something questions that help someone could help?
1) If the text is "ababcdcdef" and I search for pattern (ab|cd)*, what
is the matched string?
2) If the text is "ababcdcdef" and I search for pattern (zz|yy)*, what
is the matched string?
3) If the text is "ababcdcdef" and I search for pattern ((ab)?|(cd)?),
what is the matched string?
4) If the text is "ababcdcdef" and I search for pattern ((ab)*|(cd)*),
what is the matched string?
5) If the text is "ababcdcdef" and I search for pattern ((zz)?|(yy)?),
what is the matched string?
6) If the text is "ababcdcdef" and I search for pattern
((ab)?|(cd)?)+, what is the matched string?
7) If the text is "ababcdcdef" and I search for pattern
((ab)*|(cd)*)+, what is the matched string?
8) If the text is "ababcdcdef" and I search for pattern
((zz)?|(yy)?)+, what is the matched string?
I would like to understand the regular expression more and there
are something questions that help someone could help?
1) If the text is "ababcdcdef" and I search for pattern (ab|cd)*, what
is the matched string?
2) If the text is "ababcdcdef" and I search for pattern (zz|yy)*, what
is the matched string?
3) If the text is "ababcdcdef" and I search for pattern ((ab)?|(cd)?),
what is the matched string?
4) If the text is "ababcdcdef" and I search for pattern ((ab)*|(cd)*),
what is the matched string?
5) If the text is "ababcdcdef" and I search for pattern ((zz)?|(yy)?),
what is the matched string?
6) If the text is "ababcdcdef" and I search for pattern
((ab)?|(cd)?)+, what is the matched string?
7) If the text is "ababcdcdef" and I search for pattern
((ab)*|(cd)*)+, what is the matched string?
8) If the text is "ababcdcdef" and I search for pattern
((zz)?|(yy)?)+, what is the matched string?