+ 2
Metacharachters in regex
In regex whats the difference between the metacharachters - ? and * Both of them seem to mean 'zero or more repetitions' of the previous thing ? So if I was to use the pattern : r"colo(u)*r" OR r"colo(u)?r" They would both give me the same result. Am I missing something ?
1 Resposta
+ 2
Sorry I just realized ? means zero or ONE and * is zero or MORE