dom|izba | => | "dom" or "izba" |
dom|ulica|dvor | => | "dom" or "ulica" or "dvor" |
? | => | 0 or 1 occurrence. |
+ | => | 1 or more occurrences |
* | => | 0 or more occurrences |
doma? | => | "dom" or "doma" |
doma+ | => | "doma", "domaa" etc. |
doma* | => | "dom", "doma, "domaa" etc. |
{n} | => | Match n occurrences |
{n,} | => | Match at least n occurrences |
{n,m} | => | Match at least n, but no more than m occurrences |
[abc] | => | "a", "b" or "c" |
[^abc] | => | any character except "a", "b" or "c". |
with quantifiers: | ||
[a-z]? | => | 1 or 0 small letters |
.* | => | 0 or more occurrences of any character |
dom(ami|om) | => | "domami" or "domom" |
domami|om | => | "domami" or "om". |
domami? | => | "domami" or "domam". |
dom(ami)? | => | "dom" or "domami". |