This may be a dump question. But I have to ask to clarify it.
I have a text
string = ''' t Network Questions
Is there something like a (readied) charge in 5e?
Can you use a
Bonus Action on a turn'''
The text is scattered purposefully. i came across this doubt accidentally.
print re.sub(r'\s+',' ',string)
t Network Questions Is there something like a (readied) charge in 5e? Can you use a Bonus Action on a turn
Have a look at the next statement.
print re.sub(r'\s*',' ',string)
t N e t w o r k Q u e s t i o n s I s t h e r e s o m e t h i n g l i k e a ( r e a d i e d ) c h a r g e i n 5 e ? C a n y o u u s e a B o n u s A c t i o n o n a t u r n
The only difference is * and +. So, what exactly it is meant by 0 or more occurrence and 1 0r more occurrence. Can anyone explain why its space between words when we are using *.