Jun-01-2020, 08:17 AM
greedy:
https://regex101.com/r/QmYBkp/1
from the explanations on the right-hand side:
lazy:
https://regex101.com/r/qvKqqU/1
from the explanations on the right-hand side:
https://regex101.com/r/QmYBkp/1
from the explanations on the right-hand side:
Quote:"yd?" gm
y matches the character y literally (case sensitive)
d? matches the character d literally (case sensitive)
? Quantifier — Matches between zero and one times, as many times as possible, giving back as needed (greedy)
lazy:
https://regex101.com/r/qvKqqU/1
from the explanations on the right-hand side:
Quote:"yd??" gm
y matches the character y literally (case sensitive)
d? matches the character d literally (case sensitive)
? Quantifier — Matches between zero and one times, as few times as possible, expanding as needed (lazy)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs