Back

Regular Expressions in Python

Created 9 mons ago
54 Views
1 Comments
DhruvAd1XKz
@DhruvAd1XKz
DhruvAd1XKz
@DhruvAd1XKzProfile is locked. Login

sentence='we are humans'

matched=re.match(r'(.*) (.*?) (.*)', sentence)

print(matched.groups())

This is a question form activity of regular expression lecture...

But this concept was not taught in lecture... (re.match function) Explain please

Comments
Please login to comment.