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
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
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'.