Answer the question
In order to leave comments, you need to log in
How to replace part of the text with another using a regular expression?
There is text like this
Недалеко от Перта находится {object/100:Драммон Касл}, окруженный прекрасными садами.
В 1.5 часах езды от Перта находится долина {object/108:Кинлок Раннок}, здесь для съемок сериала был построен круг камней и назван Craigh na Dun.
Offers can be several and different. These offers come dynamically. It is necessary to replace such structures {object/100:Драммон Касл}
with<a href="{% url 'tipsfortrip:routes:route-detail' pk=100 %}">
Драммон Касл
</a>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question