How to find the handle and then replace in the string of Russian words?

There is a line
"patch#string;^in?parent$where%%window*need+replace="


Need to replace all the Russian words. Before these words must be passed to a separate function "proces" which will be the result of their transformation. And that replace function obtained from the result in string.

function proces(ruStr){
// here I process the word their algorithms
...
return ruStr;
}
September 18th 19 at 23:45
1 answer
September 18th 19 at 23:47
Solution
1. get Russian words - https://regex101.com/r/sJ8aE4/1
2. process
3. change
the problem is what?

the approximate shape of something like that jsfiddle.net/5bnL0q0b
1. get Russian words - That this I the problem.
/([a-z]+)/g.exec("patch#string;^in?parent$where%%window*need+replace="); // ["string", "string"] - sierra.Mr commented on September 18th 19 at 23:50
Or is there no Robin in any way? Regular expression to select an array of all Russian words. - sierra.Mr commented on September 18th 19 at 23:53
I already gave an example of working code. what's wrong? - Jeremie_Kunze commented on September 18th 19 at 23:56
Your example does what I need. I modified it. Now I need to push it back to a string the elements of the array - sierra.Mr commented on September 18th 19 at 23:59
in my example, is "to push back into line those elements of the array".
without seeing the code, help nothing else. - Jeremie_Kunze commented on September 19th 19 at 00:02
Your code does absolutely nothing only put in a line the ^character - sierra.Mr commented on September 19th 19 at 00:05
: Dalarna.
and so clear?
if not, then direct road to freelancing. - Jeremie_Kunze commented on September 19th 19 at 00:08
: What has changed. You just cut the string pulled up there ^^^^ and gave it for a working version - sierra.Mr commented on September 19th 19 at 00:11
You offer the following

The original string:
"patch#string;^in?parent$where%%window*need+replace="
The result
"patch#^^^string^^^;^^^^in^^^?parent$^^^which^^^%%window*^^^need^^^+^^^replace^^^="

I need the original string:
"patch#string;^in?parent$where%%window*need+replace="
The result
"patch#%D1%81%D1%82%D1%80%D0%BE%D0%BA%D0%B0;^%D0%B2?parent$%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D0%BE%D0%B9%%window*%D0%BD%D1%83%D0%B6%D0%BD%D0%BE+%D0%B7%D0%B0%D0%BC%D0%B5%D0%BD%D0%B8%D1%82%D1%8C=" - sierra.Mr commented on September 19th 19 at 00:14
You see the difference? Even easier say I replace all the Russian words on the sign "!"
The result should be the following:
"patch#!;^in?parent$!%%window*!+!=" - sierra.Mr commented on September 19th 19 at 00:17
jsfiddle.net/5bnL0q0b/4
hard, right? - Jeremie_Kunze commented on September 19th 19 at 00:20
: last attempt jsfiddle.net/5bnL0q0b/6
if it is already not clear, it is either study, or order. - Jeremie_Kunze commented on September 19th 19 at 00:23

Find more questions by tags JavaScript