in this tutorial we'll learn how to find similar strings in python string. by using re module

syntax

1
re.match('pattern', string)

example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
import re

#string
string = "Python is a great language programing"

#match
match = re.match('Python', string)

#print
print(match.group())

output

Python

English today is not an art to be mastered it's just a tool to use to get a result