Regular Expressions Greedy & Reluctant Modifiers in Python

Pubblicato il: 04 luglio 2015
sul canale di: life michael
326
1

When using quantifiers, Python supports two modes. Greedy and reluctant. The greedy mode is the default one. Been greedy, the quantifier will try to match as much as possible in order to get the biggest match result possible. Been reluctant, the quantifier will try to match as little as possible. In order to change the mode into reluctant we should add an extra question mark (?) to the quantifier, as in the following: +?, *? and ??.


In questa pagina del sito puoi guardare il video online Regular Expressions Greedy & Reluctant Modifiers in Python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato life michael 04 luglio 2015, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 326 volte e gli è piaciuto 1 spettatori. Buona visione!