- 1

Some one please help me in '?'metacharacter....@python

26th Feb 2017, 5:20 PM
Smaranjit Saha
Smaranjit Saha - avatar
4 ответов
+ 4
? makes elements optional. solol?earn matches sololearn and soloearn, as l? makes 'l' optional. You can also write: solo(learn)? matching solo and sololearn If you are referring to (?:...) something completely different is meant, namely group naming.
26th Feb 2017, 6:37 PM
Senfman
Senfman - avatar
+ 4
Technically, '?' stand for zero or one time, as '+' for one or many times, and '*' for zero or many times... You can also specify the number of times or a range with curly brackets notation: {3} is 3 times, not less, not more, and {3,5} is from 3 to 5 times ^^
26th Feb 2017, 7:40 PM
visph
visph - avatar
+ 3
What is your question, Sir?
26th Feb 2017, 6:17 PM
Senfman
Senfman - avatar
- 1
details of '?' metachatacter .
26th Feb 2017, 6:21 PM
Smaranjit Saha
Smaranjit Saha - avatar