Grouping Sets for the RegEx Wizard

Greedy Grouping

For when you're feeling extra hungry, but still want to match as much as possible.

Example: (a*b) matches 0 or more 'a's followed by 0 or more 'b's.

See Greedy Cousins for more info.

Also try: Possessive Siblings

Other Grouping Sets

Non-Greedy Grouping

When you're feeling lazy, and just want to match as little as possible.

Example: (a?b) matches 0 or 1 'a' followed by 0 or 1 'b'.

See Non-Greedy Nieces for more info.