Answer the question
In order to leave comments, you need to log in
How to find and replace some combinations of letters and numbers in an html document with others?
There is a large, just huge, html document. The document contains combinations of letters and numbers of the form: code_X
, where code is a certain constant, the same text, and X is a combination of letters and numbers, each time different. Well, for example: code_123
or code_АБВ
or code_34ВА3ВАВА834
All phrases of the form code_X
I need to replace with others, conditionally new_code
. That is, so that and code_123
and code_АБВ
and code_34ВА3ВАВА834
turns into new_code
.
How can this be done in the best possible way? In addition to HTML and CSS, I only know the basics of js. :(
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