-3

can anyone explain the difference in

import re 

ma*n
ma+n
ma?n

actually the required answer is subjective but of it helps you can take examples like

mn  
man 
maaan   
main    
woman
  • 1
    Zero or more. One or more. Exactly zero or one. – MonkeyZeus Jul 22 '20 at 17:12
  • 1
    [Yes](https://i.stack.imgur.com/Qvf2P.png), it's the very first item addressed in the highest voted answer at https://stackoverflow.com/questions/22937618/reference-what-does-this-regex-mean – MonkeyZeus Jul 22 '20 at 17:22

1 Answers1

-2

*: presence of previous character 0 or more times (Examples 1, 2, 3)

+: presence of previous character 1 or more times

?: presence of previous character optional (0 or one time)

Krishnan Shankar
  • 340
  • 2
  • 13