0

How to search string in django models.

Eg - I have word 'Helo'. how to match it with similars. Like - 'Hello', 'Helloo' , 'Hello uncle', etc. In django 1.7 database query.

5th Jul 2017, 9:31 AM
Tapish kanodia
Tapish kanodia - avatar
1 Odpowiedź
0
I have no experience with django but I know that the re module can help you with that problem. You could use re.match("hel.o.*")
7th Jul 2017, 11:51 AM
Joseph David Zamora Murillo
Joseph David Zamora Murillo - avatar