@GirishHN wrote:
The above article helps the beginners to scale up in python. I thank the author for this amazing piece of work. Also I have a doubt with respect to problem 2 under Some Examples of Regular Expressions
Please compare the below codes:
- Code given in the article
result=re.findall(r’\b\w.’,‘AV is largest Analytics community of India’)
print resultOutput: [‘AV’, ‘is’, ‘la’, ‘An’, ‘co’, ‘of’, ‘In’]
- Code modified by me
result=re.findall(’\b\w.’,‘AV is largest Analytics community of India’)
print resultOutput: []
Currently I run the code in Jupyter
When I removed “r” from the actual code the output was a blank list. Can you please help me understand the scenario??
Thanks in advance and appreciate your help!!
Posts: 2
Participants: 2