Searched refs:re2 (Results 1 - 2 of 2) sorted by relevance
/arkcompiler/ets_runtime/test/moduletest/stringreplace/ |
H A D | stringreplace.js | 39 var re2 = /[ABC]/g; variable 42 var res2 = lineString1.replace(re2, "X"); 44 var res4 = treeString1.replace(re2, "X"); 46 var res6 = slicedString.replace(re2, "X"); 60 var res = lineString2.replace(re2, func1); 66 res = lineString2.replace(re2, func2); 72 res = lineString2.replace(re2, func3); 78 res = lineString2.replace(re2, func4); 84 res = lineString2.replace(re2, func5); 90 res = lineString2.replace(re2, func [all...] |
/arkcompiler/ets_runtime/test/moduletest/regexp/ |
H A D | regexp.js | 394 const re2 = /[Cz]/g; 405 replace_result = replace_str.replace(re2, "xyz"); 406 print(re2.lastIndex); 407 cached_reuslt = replace_str.replace(re2, "xyz"); 409 print(re2.lastIndex); 525 let re2 = /-/; 526 re2.lastIndex = 2; 527 print(str5.split(re2)); 528 print(re2.lastIndex); 529 print(str5.split(re2)); [all...] |
Completed in 1 milliseconds