example rege
Example 1: regex examples
a(b|c) matches a string that has a followed by b or c (and captures b or c) -> Try it!a[bc] same as previous, but without capturing b or c
Example 2: regex examples
a(bc) parentheses create a capturing group with value bc -> Try it!a(?:bc)* using ?: we disable the capturing group -> Try it!a(?<foo>bc) using ?<foo> we put a name to the group -> Try it!